- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
must return YES at some point
textField:shouldChangeCharactersInRange:replacementString:
must also return YES
سؤال
I'm not sure why this is happening, wondering if someone can help.
I currently have a UITextfield delegate set to the ViewController. I've declared all the necessary methods. When I start typing, nothing shows up, but it is being detected per the NSLog I've inserted.
When I remove the delegate, then the text fields begins to work.
Any ideas?
المحلول
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField
must return YES at some point
textField:shouldChangeCharactersInRange:replacementString:
must also return YES