iOS 13中setValue: forKey运行报错
2020-03-09 本文已影响0人
kendi_66
iOS不允许valueForKey、setValue: forKey获取和设置私有属性,需要使用其它方式修改
_phoneTF.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"手机号" attributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:Main_WidthPhx(30)],NSForegroundColorAttributeName:[UIColor whiteColor]}];