您的位置:首页 > 移动开发 > Swift

swift开发笔记4 - 设置tabbar选中颜色

2015-09-17 11:23 369 查看
参考:http://blog.csdn.net/k12104/article/details/23999125

swift语法的写法:

ios7.0在故事板 tab bar 属性设置中设置 image tint颜色值可以实现, ios7.1中该方法不起作用,可以在代码中加入下句实现

self.tabBarController?.tabBar.selectedImageTintColor=UIColor.blackColor()

ios8中如下设置:

self.tabBar.tintColor=UIColor.blackColor()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: