Thanks Fritz. This is a great suggestion.
On Jun 4, 2011, at 10:22 AM, Fritz Anderson wrote: > On 4 Jun 2011, at 8:32 AM, Philip Vallone wrote: > >> I am taking a shot at creating a Twitter App. I was wondering if its >> possible to Subclass UItextview to detect hashes and respond to them. For >> example: >> >> "This is a tweet #iamtrending" >> >> I've seen this done in other Apps, but not sure where to start. > > UITextView does not render multiple styles, nor offer link-like behavior. To > subclass, you'd have to rip out most of the implementation. If you want those > things, use UIWebView, which is what the other apps (at least the ones > written by sane people) are doing. Convert the hash-tags to <a> content, with > a CSS class for special rendering, and your own URL scheme for capturing your > special action for touches. > > — F > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com