Re: Subclassing UItextview
Re: Subclassing UItextview
- Subject: Re: Subclassing UItextview
- From: Fritz Anderson <email@hidden>
- Date: Sat, 04 Jun 2011 09:22:14 -0500
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 (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