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: Igor Elland <email@hidden>
- Date: Fri, 07 Jun 2013 14:55:15 +0200
Hi,
I'm guessing you mean just going down and up in the text view lines, not actual text lines? If that's the case, I don't believe that's doable. But if you want to go to the next or previous sentence, you can use the new line character set and some linguistic analysis. I recommend you check the WWDC '12 videos on the subject (Text and Linguistic Analysis).
Best,
Igor Ranieri
On Jun 7, 2013, at 1:26 PM, 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.
>
> I didn't find any methods that let me do it easily. Any ideas on how to do
> this?
>
>
> Thanks,
> Peng
> _______________________________________________
>
> 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
_______________________________________________
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