Hi,

I've got a UITextView and I am trying to add a "save" button to the top bar when the user clicks it to start editing. The UIView which contains the textview is a delegate for the TextView, so I have a textViewDidBeginEditing function something like this:


- (void)textViewDidBeginEditing:(UITextView *)textView
{
        [uisettings setRightBarButtonItem:savebutton animated:YES];
}


Theoretically when the user clicks in the text view to start editing, my button would be added to the top bar. This does work, but not always. I find that if I click quickly on the textview then it works, but that if I press and hold down (this is on an iphone), the little text-magnifying glass pops up and my function never gets called.

I don't mind the glass popping up but how can I ensure that textViewDidBeginEditing always gets called? Otherwise I have no way out of the text editing once it is begun.

Thanks
Bob


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to