self.navigationController!.navigationBar.setBackgroundImage(image, for: .default)
self.navigationController!.navigationBar.titleTextAttributes= [NSForegroundColorAttributeName:UIColor.white,NSFontAttributeName:UIFont.systemFont(ofSize:20)]
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
网友评论