热卖商品
新闻详情
Bruce_新浪博客
来自 : 新浪博客
发布时间:2021-03-25
查看原文:http://www.heyuan110.com/
升级到xcode6后,自定义的UITabBarItem在ios8里图标变成灰色,点击后变成蓝色,原因使用了在已经被废弃的方法- (void)setFinishedSelectedImage:(UIImage *)selectedImagewithFinishedUnselectedImage:(UIImage *)unselectedImageNS_DEPRECATED_IOS(5_0,7_0,\'Use initWithTitle:image:selectedImage:or the image and selectedImage properties along withUIImageRenderingModeAlwaysOriginal\');
解决办法
//创建自定义UITabBarItem - (UITabBarItem *) createTabBarItem:(NSString *)strTitle normalImage:(NSString *)strNormalImg selectedImage:(NSString *)strSelectedImg itemTag:(NSInteger)intTag { UITabBarItem *item = [[UITabBarItem alloc] initWithTitle:strTitle image:nil tag:intTag]; [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor colorWithRed:172/255.0 green:172/255.0 blue:172/255.0 alpha:1.0], UITextAttributeTextColor, nil]
原文: http://www.heyuan110.com/2015/06/23/自动打包Shell脚本/ 阅读 ┆ 评论 ┆ 转载 ┆ 收藏 查看全文>> 同学聚会 (2015-06-25 11:52) 转载...Bruce_新浪博客,Bruce,it,chrome,charles,转载,动画,uiimageview,抓包,fiddler,charles,shell,自动打包shell脚本,自动打包,同学聚会,杂谈Bruce_新浪博客,Bruce,Charles辅助调试接口,[转载]Meta标签中的format-detection属性及含义,[转载]IOS 音频开发,[转载]Associative机制使用场景,UIImageView的Loading动画,App抓包工具fiddler,Charles,自动打包Shell脚本,同学聚会,AppStore被Rejected 的各种原因,自定义UITabBarItem在ios8显示异常Bruce
本文链接: http://bruce.immuno-online.com/view-760326.html
发布于 : 2021-03-25
阅读(0)
最新动态
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
2021-03-25
公司介绍
品牌分类
联络我们
服务热线:4000-520-616
(限工作日9:00-18:00)
QQ :1570468124
手机:18915418616