• 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
tappable strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tappable strings


  • Subject: tappable strings
  • From: Roland King <email@hidden>
  • Date: Thu, 17 Jan 2013 21:52:26 +0800

I have some NSAttributedStrings which I'm currently using a UILabel to draw. They are made up of several elements, words in more than one language, and I want the strings to be tappable and to know where in the string I tapped. I looked at NSStringDrawingContext which gives you some overall information about drawing a string, but not where the individual characters ended up.

Is this something I have to drop down to Core Text for? I'd love not to if I can avoid it but will if I have to. I tried using individual labels stuffed together but the spacing sucked and I'm using autolayout and that really seems to work better if the entire line is one UI element.
_______________________________________________

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

  • Prev by Date: Re: Using a document bundle file type with core data
  • Next by Date: Re: Thread synchronization via queue
  • Previous by thread: Re: Thread synchronization via queue
  • Next by thread: NSTextfield focus in contextual menu
  • Index(es):
    • Date
    • Thread