UITextView textViewDidBeginEditing issue
UITextView textViewDidBeginEditing issue
- Subject: UITextView textViewDidBeginEditing issue
- From: Bob Sabiston <email@hidden>
- Date: Wed, 19 Nov 2008 10:27:26 -0600
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 (email@hidden)
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:
This email sent to email@hidden