第38月第8天 ios13 _placeholderLabel ASAuthorizationAppleIDProvider


1.

"NSGenericException" - reason: "Access to UITextField's _placeholderLabel ivar is prohibited. This is an application bug"

設置TextFiled的默認文字顏色在iOS13 Crash。

[textfield setValue:[UIColor whiteColor] forKeyPath:@"_placeholderLabel.textColor"];
 查了一下,帖子挺多的,解決方案:

Ivar ivar = class_getInstanceVariable([UITextField class], "_placeholderLabel");
UILabel *placeholderLabel = object_getIvar(textField, ivar);
placeholderLabel.textColor = [UIColor whiteColor];
記得加頭文件

#import <objc/runtime.h>

 

https://blog.csdn.net/Han_Laomo/article/details/101111427

 

2.app store審核4.8 Sign in with Apple

ASAuthorizationAppleIDProvider

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM