iphone - textViewDidEndEditing is not called -
i'm new ios development.
i have written header file following
@interface textview : uitextview <uitextviewdelegate, uipopovercontrollerdelegate>
in textview.h.
the implementation file code following :
- (bool)textviewshouldbeginediting:(textview *)textview { zwlog(@"called should begin edit"); return yes; } - (void)textviewdidbeginediting:(textview *)textview { zwlog(@"called did begin edit"); } - (bool)textviewshouldendediting:(textview *)textview { zwlog(@"called should end editing"); return yes; } - (void)textviewdidendediting:(textview *)textview { zwlog(@"view did end edit"); return yes; } - (bool)textview:(textview *)textview shouldchangetextinrange:(nsrange)range replacementtext:(nsstring *)text { //my own code return yes; } - (void)textviewdidchange:(textview *)textview { //my own code }
when start typing character in uitextview
, got response from
textviewshouldbeginediting
.textviewdidbeginediting
.shouldchangetextinrange
.textviewdidchange
.
but didn't response textviewdidendediting
or textviewshouldendediting
. have idea why these not getting called?
thanks answers.
textviewdidendediting called when textfield resigns first responder, when keyboard disappears.
Comments
Post a Comment