PDA

View Full Version : textViewShouldBeginEditing & textViewShouldEndEditing called twice




HARDWARRIOR
Mar 2, 2009, 02:40 PM
Hi!
I implemented UITextViewDelegate protocol's methods textViewShouldBeginEditing & textViewShouldEndEditing in one of viewControllers. There is only one UITextView that has this viewController as delegate.
But very strange things happen when editing begins or ends. Each of those methods called TWICE! On editing begins textViewShouldBeginEditing is called twice. Each time with the same callstack! Same for
textViewShouldEndEditing.
Well... of course I can handle twice calls, but is it right? Is it normal behaviour? Have expirienced such a twice calls?



caveman_uk
Mar 3, 2009, 02:39 AM
Are you absolutely certain this isn't the delegate for another textview?