Xcode 代码片段

nav改变字体颜色

2018-11-30  本文已影响0人  _YN

oc

self.navigationController.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName:[UIColor whiteColor]};

swift

self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor:UIColor.red];

[如果您在阅读我的文章时有疑问 , 请点击这里](https://www.jianshu.com/p/1e68be1e6646)

上一篇 下一篇

猜你喜欢

热点阅读