Re: Move cursor to previous/next line in UITextView
Re: Move cursor to previous/next line in UITextView
- Subject: Re: Move cursor to previous/next line in UITextView
- From: Jens Alfke <email@hidden>
- Date: Fri, 07 Jun 2013 09:37:49 -0700
On Jun 7, 2013, at 4:26 AM, Peng Gu <email@hidden> wrote:
> In the iPhone/iPad simulator, you can use arrow-up and arrow-down keys on
> Mac to move the cursor to previous/next line in the UITextView. I'd like to
> create two buttons that implements the same functionalities.
You should just be able to send it a fake key event whose key code is the appropriate arrow key’s.
But I’m not nearly as familiar with events and responders in iOS as I am in Mac OS, so I couldn’t quickly find the method that receives key events.
—Jens
_______________________________________________
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