textViewShouldBeginEditing & textViewShouldEndEditing called twice

Discussion in 'iOS Programming' started by HARDWARRIOR, Mar 2, 2009.

  1. HARDWARRIOR macrumors member

    Nov 17, 2008
    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
    Well... of course I can handle twice calls, but is it right? Is it normal behaviour? Have expirienced such a twice calls?
  2. caveman_uk Guest


    Feb 17, 2003
    Hitchin, Herts, UK
    Are you absolutely certain this isn't the delegate for another textview?

Share This Page