I encountered a problem on the UITextFieldDelegate, anyone can help me will be great appreciate. There is a UITextView, and I implemented its delegate. Normally all delegate methods called very good. But in this case:
I need the textViewShouldBeginEditing be called to handle some UI changes. Anyone knows how to solve it? Thanks very much!
Test project: I created a simple test project which will NSLog the calls of the methods, you can test my case quickly, thanks! The source code is here: http://goo.gl/tGQS5
Did you perhaps forgot to go:
myTextView.delegate = self;
?
In a recent app I released, I did something similar.
I disabled a UITextField so I could use a long press gesture on a UITableViewSectionHeader to edit the section header's name, and single tap section header to select it.
I had to put:
// groupName is my UITextField
groupName.userInteractionEnabled = YES;
[groupName becomeFirstResponder];
In my long press gesture recognizer callback method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With