• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Move cursor to previous/next line in UITextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Move cursor to previous/next line in UITextView (From: Peng Gu <email@hidden>)
 >Re: Move cursor to previous/next line in UITextView (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Memory not being released in a timely manner
  • Next by Date: ASL appears to be broken on iOS; need a workaround
  • Previous by thread: Re: Move cursor to previous/next line in UITextView
  • Next by thread: ASL appears to be broken on iOS; need a workaround
  • Index(es):
    • Date
    • Thread