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:
- set the UITextView not editable.
- long-press the UITextView until the popup appear (copy, cut, ...).
- dismiss the popup, and set the UITextView editable
- tap the UITextView to make the UITextView enter editing mode.
- you will find the delegate method textViewShouldBeginEditing not called.
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