ios - 如何设置UITabBarItem 选中时的背景色
伊谢尔伦
伊谢尔伦 2017-04-17 15:04:43
0
1
327

如图

类似Instagram 的tabBar,选中的时候的item的背景色更深。怎么设置啊,我已经把UITabBar apperance 试过差不多了都。还有就是UITabBarItem在未选中情况下的颜色怎么设置

    [[UITabBar appearance]setBackgroundColor:[UIColor myDarkGrayColorDark]];
    [[UITabBar appearance]setTintColor:[UIColor myThemeColor]];
    [[UITabBar appearance]setBarTintColor:[UIColor myDarkGrayColor]];
    [[UITabBar appearance]setBarStyle:UIBarStyleBlack];
    [[UITabBar appearance]setSelectedImageTintColor:[UIColor whiteColor]];
伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(1)
黄舟

This should be a custom tabbar. Set the image of the two states of the button and it will be ok.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!