How to change tintColor of UIBarButtonItem? [SWIFT]
2016-03-17 16:04
555 查看
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Changing the status bar's colour to white UIApplication.sharedApplication().statusBarStyle = .LightContent // Changing the navigation controller's background colour UINavigationBar.appearance().barTintColor = UIColor(red: 0.0/255.0, green: 165.0/255.0, blue: 227.0/255.0, alpha: 1.0) // Changing the navigation controller's title colour UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()] // Changing the colour of the bar button items UINavigationBar.appearance().tintColor = UIColor.whiteColor() // Changing the tint colour of the tab bar icons UITabBar.appearance().tintColor = UIColor(red: 0.0/255/0, green: 165.0/255.0, blue: 227.0/255.0, alpha: 1.0) return true }
相关文章推荐
- 分享一个php邮件库——swiftmailer
- PHP Swift Mailer库使用
- Swift2.0学习笔记(整理版)
- swift 的基本语法
- Swift 正向传值以及利用闭包(closure)实现反向传值(七)
- ios开发系列之Swift_UI_UITableView
- IOS --- OC与Swift混编(转)
- ios开发系列之Swift_UI_ScrollVIew
- ios开发系列之Swift_UI_ScrollVIew
- Swift - 同步请求数据(NSURLSession方式)
- Swift - 后台获取数据(Background Fetch)的实现
- 我眼中的swift
- Swift中自定义Log
- 使用XcodeColors 来显示XCGLogger,进行swift 的logger定制
- Swift开发第六篇——操作运算符也可以重载& func 的参数修饰
- swift内存泄露,与OC的混合
- Swift2.x 中类的计算属性set方法不能访问自身值
- swift2.x不能使用函数重载的问题
- Swift 2.0 自定义cell和不同风格的cell
- Swift - 让程序挂起后,能在后台继续运行任务