本文会在开发过程当中将遇到的问题持续更新`````````
iOS13从runtime层就把私有属性干了, 所以之前的老项目中但凡用到的都会报crash。以下记录遇到的问题和解决方案。
- UITextfield
[textfield setValue:[UIColor whiteColor]
forKeyPath:@"_placeholderLabel.textColor"];
报错信息:
"NSGenericException"
- reason: "Access to UITextField's _placeholderLabel ivar is prohibited. This is an application bug"
网友评论