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: Peng Gu <email@hidden>
- Date: Sat, 08 Jun 2013 07:37:19 +0800
I didn't find the key events methods either. Seems Apple doesn't provide it
in iOS.
Is there any way to calculate the number of characters for lines in
UITextView ?
On Sat, Jun 8, 2013 at 12:37 AM, Jens Alfke <email@hidden> wrote:
>
> 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