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 Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 03-11-2011, 12:32 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: Australia
Posts: 10
ellawson is on a distinguished road
Question (Xcode 3.2.5) Linking Table View list items to URLs

Hi everyone,

I'm a xCode and C-programming newbie, and am in the middle of developing an app that basically acts as a portal to various web pages. In short, I have 5 tabs that each contain Table View lists displaying a NSMutableArray. I need to be able to have users tap each list item and be taken to a number of different URLs, preferably via a WebView within the app.

I have seen some posts around showing how URL linking can be achieved - but via a button. I haven't seen any tutorials or code posts on how to achieve this from a Table View list item.

Not sure what (if any code) will be helpful for you guys (or gals) to see, so just let me know what you need.

Many thanks in advance!
ellawson is offline   Reply With Quote
Old 03-11-2011, 11:20 AM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
Join Date: Aug 2008
Location: Memphis, TN, USA
Age: 24
Posts: 3,983
smithdale87 is on a distinguished road
Send a message via AIM to smithdale87
Default

All you need to do is implement the didSelectRowAtIndexPath method for your tableview.

Inside that method, you would use the same code that you execute in the button-click examples.
smithdale87 is offline   Reply With Quote
Old 03-16-2011, 10:41 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2011
Location: Australia
Posts: 10
ellawson is on a distinguished road
Default

OK, great - will give it a go. Thanks very much for the prompt reply.
ellawson is offline   Reply With Quote
Reply

Bookmarks

Tags
hyperlink, table view, url, web view, xcode

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: 413
11 members and 402 guests
AppleDev, chemistry, Emy, Gi-lo, ipodphone, mistergreen2011, pipposanta, QuantumDoja, Retouchable, SLIC
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,924
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

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