• 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
How to get tapped text from UITextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get tapped text from UITextView


  • Subject: How to get tapped text from UITextView
  • From: Sasikumar JP <email@hidden>
  • Date: Fri, 30 Apr 2010 11:08:00 +0530

Hi,
	I am working on a iPhone Application. I want to implement the following feature in my app, but i don't know how to implement it.

	I want to display the read-only text content in UITextView, where user can tap any word in the text. It should take the user to next screen to display more detail about the tapped word.

	I dont know how to get tapped word from the UITextView.

	I have set the UITextView as a read-only to avoid the popping key-board and I have subclassed the UITextView to override the canPerformAction: withSender to disable the cut & paste feature.

	I have overridden touchesBegan method to get the touch/tap Event. But i am not sure how to get only the tapped word from the complete text.


	Any help is highly appreciated.


Thanks
Sasikumar_______________________________________________

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: How to get tapped text from UITextView
      • From: Alex Kac <email@hidden>
  • Prev by Date: Re: Getting a bezier path for a character
  • Next by Date: Re: Getting a bezier path for a character
  • Previous by thread: Re: test if folder contains file based on NSURLs
  • Next by thread: Re: How to get tapped text from UITextView
  • Index(es):
    • Date
    • Thread