百思不得姐项目学习总结
2016-02-22 16:54
369 查看
少叙述,多代码,简单粗暴最高效。
tabBarItem的tiltle属性设置
NSMutableDictionary *selectedAttrs = [NSMutableDictionary dictionary]; selectedAttrs[NSFontAttributeName] = [UIFont systemFontOfSize:12]; selectedAttrs[NSForegroundColorAttributeName] = [UIColor darkGrayColor]; [vc01.tabBarItem setTitleTextAttributes:selectedAttrs forState:UIControlStateSelected];
[UINavigationBar appearance]; // 通过appearance统一设置所有UITabBarItem的文字属性 // 后面带有UI_APPEARANCE_SELECTOR的方法, 都可以通过appearance对象来统一设置 NSMutableDictionary *attrs = [NSMutableDictionary dictionary]; attrs[NSFontAttributeName] = [UIFont systemFontOfSize:12]; attrs[NSForegroundColorAttributeName] = [UIColor grayColor]; NSMutableDictionary *selectedAttrs = [NSMutableDictionary dictionary]; selectedAttrs[NSFontAttributeName] = attrs[NSFontAttributeName]; selectedAttrs[NSForegroundColorAttributeName] = [UIColor darkGrayColor]; UITabBarItem *item = [UITabBarItem appearance]; [item setTitleTextAttributes:attrs forState:UIControlStateNormal]; [item setTitleTextAttributes:selectedAttrs forState:UIControlStateSelected];
相关文章推荐
- Android studio reset adb操作
- hrbust 1658,哈理工oj 1658 一笔画【并查集过】
- git push origin master fatal: 'origin' does not appear to be a git repository fatal: Could not read
- 学C++就学服务端,先把apue和unp两卷看了,接着libevent,出来找工作应该没问题
- 115个Java面试题和答案——(下)
- pxe自动化安装
- Play with Chain hdu 3487(伸展树翻转+删子树添子树)
- bug(1)
- MongoDB 进阶(命令\固定集合)
- JSONHelper
- 115个Java面试题和答案——(上)
- Zoho Books:经常性交易自动扣款
- 前端技术-调试工具(上)
- Mac上react native 初步尝试
- 按键分析--APP部分-- OnLongClickListener事件处理流程
- IOS为图片截图
- 交换路由命令及配置
- 获取apk签名指纹的md5值 防止重新被打包
- Spring面试知识点总结
- 报告软件系统性能(9)