UITabBar not showing selected item images in ios 7

后端 未结 20 1839
我在风中等你
我在风中等你 2020-11-29 18:36

The icons show fine in ios 6 but not in ios 7. I\'m setting the selected state in the viewController viewDidLoad method. When the user selects a tab bar item the image disap

20条回答
  •  萌比男神i
    2020-11-29 19:10

    No answers helped fixing this issue. The main reason is that my TabBarController wasn't my RootViewController.

    The solution I used for Storyboards, and I just clicked my UITabButton and I added a runtime attribute for selectedImage:

    For each of the different views associated with the UITabController.

提交回复
热议问题