UITabBar tint in iOS 7

后端 未结 4 2436
春和景丽
春和景丽 2021-02-19 15:31

How can i specify the tint of images when a tab is selected and unselected?

I have tried this but it doesnt work:

[[UITabBar appearance] setTintColor:[UI         


        
4条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 15:39

    You have to use the new Image rendering modes introduced in iOS 7 (UIImageRenderingModeAlwaysOriginal and UIImageRenderingModeAlwaysTemplate )see my answer to a similar question:

    Hope this helps

提交回复
热议问题