• 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
Re: Subclassing UItextview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing UItextview


  • Subject: Re: Subclassing UItextview
  • From: Philip Vallone <email@hidden>
  • Date: Sat, 04 Jun 2011 10:25:58 -0400

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 (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

References: 
 >Subclassing UItextview (From: Philip Vallone <email@hidden>)
 >Re: Subclassing UItextview (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Subclassing UItextview
  • Next by Date: disable multitouch gestures globally - possible? (mac OS X)
  • Previous by thread: Re: Subclassing UItextview
  • Next by thread: Re: Subclassing UItextview
  • Index(es):
    • Date
    • Thread