IOS 开发琐碎

// 设置返回按钮的文字为空
navigationItem.backBarButtonItem = UIBarButtonItem(title: “”, style: UIBarButtonItemStyle.Plain, target: nil, action: nil)

// 设置返回按钮图片
navigationController?.navigationBar.backIndicatorImage = UIImage(named: “ic_login”)
navigationController?.navigationBar.backIndicatorTransitionMaskImage = UIImage(named: “ic_login”)

// 设置导航标题文字大小及颜色
navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.redColor(),NSFontAttributeName: UIFont.systemFontOfSize(14)]

Leave a Reply

Your email address will not be published.