textViewShouldBeginEditing & textViewShouldEndEditing called twice

Discussion in 'iPhone/iPad Programming' started by HARDWARRIOR, Mar 2, 2009.

  1. macrumors member

    Joined:
    Nov 17, 2008
    #1
    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?
     
  2. Guest

    caveman_uk

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

Share This Page