问题
I have a password text field which will crash the app if I try to type a single character. I have referenced this but still no luck. I am running iOS 11.2.6 Here are my configs
回答1:
I just found out, if you are using Custom Class for UITextField, setting self.textColor in that class on Secure Text Entry text field might be the cause of freezing. I solved it by doing:
if (!self.isSecureTextEntry) {
self.textColor = UIColor.white
}
来源:https://stackoverflow.com/questions/49169123/secure-text-entry-freezes-when-i-try-to-type-one-character