Re: UITextView symbols
Re: UITextView symbols
- Subject: Re: UITextView symbols
- From: Andrew Farmer <email@hidden>
- Date: Sun, 28 Jun 2009 19:23:13 -0700
On 27 Jun 2009, at 16:26, DKJ wrote:
I'm using this method:
textView:shouldChangeTextInRange:replacementText:
to let users put special symbols into a UITextView.
I detect the Return key by checking whether the input string is
equal to @"\n". But how would I detect the back-delete key? @"\b"
doesn't do it. And I can't seem to find any docs that list these
codes.
I haven't done any iPhone development myself, but I'd imagine that
your problem is that you're looking for the wrong sort of change.
Pressing Return inserts a newline, but pressing backspace doesn't
insert a backspace. It removes a character. At a blind guess, maybe
it'll show up as a range of length 1 being replaced with @""?
_______________________________________________
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