Re: Detect Tap on Word in UILabel?
Re: Detect Tap on Word in UILabel?
- Subject: Re: Detect Tap on Word in UILabel?
- From: Scott Anguish <email@hidden>
- Date: Sun, 31 Jan 2010 14:57:10 -0500
Why would you want to do this, vs using a button?
How would the user know they should tap on that word?
On Jan 30, 2010, at 6:54 PM, Samuel Ford wrote:
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