let attrString = NSAttributedString(string: "请输入关键字", attributes: [ NSAttributedString.Key.foregroundColor: UIColor(red: 124/255, green: 125/255, blue: 132/255, alpha: 1), NSAttributedString.Key.font: UIFont.systemFont(ofSize: FontSize(15)) ])

NSAttributedString attrString=NSAttributedString allocinitWithString请输入关键字 attributes NSForegroundColorAttributeNameRBG124125132 NSFontAttributeNameUIFont systemFontOfSizeFontSize15 ;

原文地址: https://www.cveoy.top/t/topic/iRpy 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录