• 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: 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


  • Follow-Ups:
    • Re: Move cursor to previous/next line in UITextView
      • From: Peng Gu <email@hidden>
References: 
 >Move cursor to previous/next line in UITextView (From: Peng Gu <email@hidden>)

  • Prev by Date: Re: Memory not being released in a timely manner
  • Next by Date: Re: Memory not being released in a timely manner
  • Previous by thread: Re: Move cursor to previous/next line in UITextView
  • Next by thread: Re: Move cursor to previous/next line in UITextView
  • Index(es):
    • Date
    • Thread