swift 设置标题字体属性
self.navigationItem.title = "HOME"
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor:UIColor.darkGray,NSAttributedString.Key.font : UIFont.systemFont(ofSize: 22)
self.navigationItem.title = "HOME"
self.navigationController?.navigationBar.titleTextAttributes = [NSAttributedString.Key.foregroundColor:UIColor.darkGray,NSAttributedString.Key.font : UIFont.systemFont(ofSize: 22)
本文标题:2019-07-10
本文链接:https://www.haomeiwen.com/subject/mhlckctx.html
网友评论