ios 状态栏、菜单颜色设置 modal push tabBar navBar toolBar
2016-02-26 00:00
513 查看
modal设置和push设置是不同的
//push和菜单颜色设置
//modal 这个是UIBar UIView *statusBarView=[[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 20)]; UIColor * color=[UIColor colorWithRed:220/255.0 green:20/255.0 blue:60/255.0 alpha:1]; statusBarView.backgroundColor=color; [self.view addSubview:statusBarView]; //不显示电池 //[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:NO];
//push和菜单颜色设置
//图标点击颜色 self.tabBar.tintColor=[UIColor colorWithRed:220/255.0 green:20/255.0 blue:60/255.0 alpha:1]; UIColor *color=[UIColor colorWithRed:220/255.0 green:20/255.0 blue:60/255.0 alpha:1]; //导航条颜色 [[UINavigationBar appearance] setBarTintColor:color]; //@{}代表Dictionary //导航条字体颜色 [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
相关文章推荐
- ios 调用相册 及 相册显示中文
- ios 缩放图片(平铺)
- ios打乱数组顺序
- iOS 设计模式 - 命令模式
- 关于iOS多线程
- 美拍、秒拍中安卓、IOS短视频拍摄的一些关键技术
- 美拍、秒拍中安卓、IOS短视频拍摄的一些关键技术
- iOS开发Debug之去掉tableView的headerview的粘性
- 音乐播放器 - iOS开发
- iOS 进程 多线程
- iOS项目实践之时光电影(一)
- iOS 获取对象的全部属性、把model的所有属性和对应的值转化为字典
- IOS开发 arc与非Arc代码的区别
- IOS以无线方式安装企业内部应用(开发者)
- 简易的IOS位置定位服务
- BIOS学习:BIOS设置图解教程
- iOS基础常识题目
- 电脑基础知识:BIOS的含义及功能简介
- iOS 导航条的基本用法
- 蓝懿ios微博项目之自定义cell