赞
踩
谁能在Swift 2.0中告诉我如何在UITabBar图标中覆盖Xcode的默认灰色?这个问题对我没有帮助:选项卡栏项目图标显得更暗。
在我的第一个视图控制器的viewDidLoad中,我放置了以下内容,它的作用就像是一个魅力:
let aTabArray: [UITabBarItem] = (self.tabBarController?.tabBar.items)! for item in aTabArray { item.image = item.image?.imageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal) item.imageInsets = UIEdgeInsetsMake(7, 0, -7, 0) }
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。