2023年7月14日发(作者:)
swift——设置navigationitemtitle的内容以及格颜⾊1.⽤UILabel,⾃定义整个titleview// var TitleText = UILabel() = CGRectMake(0, 0, 100, 30) = "账号" = stemFontOfSize(20) lor = olor() iew = TitleText2.只改变字体颜⾊ let navigationTitleAttribute: NSDictionary = NSDictionary(object: olor(), forKey: NSForegroundColorAttributeName) = "账号" tionController?.extAttributes = navigationTitleAttribute as? [String : AnyObject]
发布者:admin,转转请注明出处:http://www.yc00.com/news/1689265565a226472.html
评论列表(0条)