Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-11-2011, 05:07 PM   #1 (permalink)
Registered Member
 
Join Date: Apr 2009
Posts: 118
lexy0202 is on a distinguished road
Question TableView Cell with Links

Hi,

I'm building a basic twitter reader (only for viewing, no posting) - and I want to add clickable URLs into my TableView... from the apps I've seen so far I've realised there are two ways:

The Official Twitter app way, which is to only detect and highlight links, emails etc. in a drilled down view.

Or the twitterific (and possibly other clients) way which is to detect and highlight in the tableView. - This is what I want to achieve, however I've heard some people say it can lead to laggy scrolling.

Could someone tell me of a thread, sample code, etc of where I can find a tableViewCell subclass that can do this. I don't have a problem with the string detection, just the ability to format it and make it clickable inside the tableView - that will definitely be the challenge here

Thanks in advance,
Alex
lexy0202 is offline   Reply With Quote
Old 07-11-2011, 08:29 PM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Jan 2010
Location: Issaquah, WA
Age: 42
Posts: 1,244
dljeffery is on a distinguished road
Default

Quote:
Originally Posted by lexy0202 View Post
Could someone tell me of a thread, sample code, etc of where I can find a tableViewCell subclass that can do this. I don't have a problem with the string detection, just the ability to format it and make it clickable inside the tableView - that will definitely be the challenge here
UITextView will do all this for you, as long as you configure the data detector types as needed. So you could just put a UITextView in your custom cell (as opposed to the more typical UILabel approach).
__________________
Recall It! Tag your notes. Tag your photos. Tag your thoughts. Tag your life.

Recall It! for iPad

http://www.dljeffery.com
dljeffery is offline   Reply With Quote
Reply

Bookmarks

Tags
clickable, links, tableview, twitter, url

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 369
9 members and 360 guests
apatsufas, chemistry, Kirkout, leostc, lzwasyc, MarkC, Sami Gh, SamorodovAlex, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0