• 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
Detect Tap on Word in UILabel?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detect Tap on Word in UILabel?


  • Subject: Detect Tap on Word in UILabel?
  • From: Samuel Ford <email@hidden>
  • Date: Sat, 30 Jan 2010 18:54:35 -0500

Is it possible to detect which word was tapped in a UILabel in Cocoa Touch? It seems like it should be a pretty easy thing to do, but I'm stuck.

Anybody ever try to do this?

I know you can measure a string and get the bounding box that contains it; likewise, looking at the UITextInput protocol it has exactly the right methods (closestPositionToPoint & firstRectForRange), but these are limited 3.2 and don't seem to apply to UILabel.
_______________________________________________

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: Detect Tap on Word in UILabel?
      • From: Scott Anguish <email@hidden>
    • Re: Detect Tap on Word in UILabel?
      • From: Roland King <email@hidden>
  • Prev by Date: Google Irvine open house on the Jan 27th.
  • Next by Date: NSTextView Drag and Drop
  • Previous by thread: Google Irvine open house on the Jan 27th.
  • Next by thread: Re: Detect Tap on Word in UILabel?
  • Index(es):
    • Date
    • Thread