Warning about obtaining lock from other thread when accessing text field
问题 I have a UITextField named _passwordTextField , where I'm hiding the input: [_passwordTextField setSecureTextEntry:YES]; every time I access the field's text with passwordTextField.text , I see this warning: void _WebThreadLockFromAnyThread(bool), 0x9077460: Obtaining the web lock from a thread other than the main thread or the web thread. UIKit should not be called from a secondary thread. How do I remove this warning? 回答1: This has nothing to do with UITextField . iOS UIKit requires any