美文网首页
swift设置导航栏背景颜色和文字的属性

swift设置导航栏背景颜色和文字的属性

作者: SimpleTogether | 来源:发表于2016-11-03 10:28 被阅读61次

self.navigationController!.navigationBar.setBackgroundImage(image, for: .default)

self.navigationController!.navigationBar.titleTextAttributes= [NSForegroundColorAttributeName:UIColor.white,NSFontAttributeName:UIFont.systemFont(ofSize:20)]

相关文章

网友评论

      本文标题:swift设置导航栏背景颜色和文字的属性

      本文链接:https://www.haomeiwen.com/subject/nlzssttx.html