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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.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 02-12-2010, 04:55 PM   #1 (permalink)
Hot Cocoa Touch
 
redon's Avatar
 
Join Date: Oct 2009
Location: Florida
Posts: 193
Default Determine which cell was selected and display corresponding definition.

for example. in a table view, i have a cell that displays the name "Bob" when i click on that cell, i want it to navigate to a new view and display (in i guess a textview) the meaning behind the name bob.

PS: both the name AND the definition are stored in a PLIST.
__________________
http://www.bugspray.me/
Search GetFit! on the App Store.
redon is offline   Reply With Quote
Old 02-12-2010, 07:59 PM   #2 (permalink)
mlo
Registered Member
 
mlo's Avatar
 
Join Date: Jun 2009
Location: Ireland
Posts: 117
Default

You should probably set up your app with a navigation controller and a tableview(the xCode navigation app template is a good starting point, as it sets your rootview controller up as a tableview and also gives you the navigation controller already setup) Then use the tableviews didselectrowatindex method to push a view controller with your definition.

You should also look at subclassing UIViewcontroller for the definition viewcontroller.

Tab bars and Navigation bars together - O'Reilly Broadcast

Isn't a bad place to start; although the tutorials are for a nav controller within tabbar, the functionality of the nav controller and the tableview are what you want. Do be careful however as the tutorial subclasses the tableview as well (which caused be problems until I realised it and removed it (thanks to Brianslick btw))

Hope this helps.

Last edited by mlo; 02-12-2010 at 08:01 PM.
mlo is offline   Reply With Quote
Reply

Bookmarks

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: 254
20 members and 234 guests
14DEV, ADY, Bertrand21, Dani77, HemiMG, iDifferent, IphoneSdk, jakerocheleau, JasonR, jimbo, macquitzon216, MACralik, NSeven, prchn4christ, Rudy, silverwiz, spiderguy84, Sunny46
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,230
Posts: 380,767
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

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