【发布时间】:2015-01-08 05:38:48
【问题描述】:
自从我更新 xcode 以来,我似乎无法更改 titleTextAttribute。现在,当我使用以下代码时,出现此错误:
找不到接受这个提供的参数的重载初始化
appDelegate中的代码:
UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont(name: "Ubuntu", size: 17), NSForegroundColorAttributeName:UIColor.whiteColor()]
UIBarButtonItem.appearance().setTitleTextAttributes([NSFontAttributeName: UIFont(name: "Ubuntu-Light", size: 15), NSForegroundColorAttributeName:UIColor.whiteColor()], forState: UIControlState.Normal)
【问题讨论】:
标签: ios iphone swift appdelegate