how to programmatically change the tabbarItem's image
问题 I'm developing a shopping cart tab. Originally I just use the default badge value to show how many items in the cart on the bottom tabbar. Now the designer wants to be fancy, he wants to show different image based on how many items in the cart. For example, if there's one, show cartTab-1.png, if 2, show cartTab-2.png... I tried to change the tabaritem ( UITabBarItem )'s image but it didn't work for me. Is it feasible? I discussed with my colleague, he said I may have to draw the image on top