Appdelegate 导航操作
2015-10-10 17:57
218 查看
隐藏返回按钮
self.navigationItem.hidesBackButton = YES;设置导航的透明度
self.navigationController.navigationBar.translucent = NO;设置导航条的背景颜色 好使杠杠的
[[UINavigationBar appearance] setBarTintColor:[UIColor colorWithHexString:@"#006f6b" withAlpha:1]];[[UINavigationBar appearance] setBackgroundImage:[[UIImage imageNamed:@"Bar_导航条"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:kColor(255, 255, 255, 1),NSFontAttributeName:[UIFont boldSystemFontOfSize:17.0]}];
[[UITabBar appearance] setTintColor:[UIColor colorWithRed:1.000 green:0.671 blue:0.163 alpha:1.000]];下面的工具条
[self hasLogin];
MainTabBarViewController *mtc = [[MainTabBarViewController alloc]init];
self.mainView = mtc;
self.window.rootViewController = mtc;
[self.window makeKeyAndVisible];
UIBarButtonItem *back = [[UIBarButtonItem alloc]initWithImage:[[UIImage imageNamed:@"back_btn_n (2)"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] style:UIBarButtonItemStyleBordered target:self action:@selector(finish)];
self.navigationItem.leftBarButtonItem = back;
相关文章推荐
- Swift - 简单实现一个tableView
- 从源码角度分析Android系统的异常捕获机制是如何运行的
- Android 如何让EditText不自动获取焦点
- Swift游戏开发实战教程(霸内部信息大学)
- IOS 开发之 Method Swizzling + Category
- 微信支付安卓集成
- iOS7 监听耳机拔出
- Android 浏览器开发WebView setBlockNetworkImage本末
- ios 开发小记 (四)
- UIWebView
- iOS:quartz2D绘图
- Android中添加常驻通知栏
- iOS学习之iOS沙盒(sandbox)机制和文件操作(一)
- Android开源项目
- android 开发中的文件操作
- 使用VirtualEnvWrapper隔离python项目的库依赖
- AndroidSwipeLayout:最强大的 Swipe Layout
- Android - 文件读写操作 总结
- 如何做 Android 应用流量测试
- cocos2dx 安卓加载so文件马上崩溃