Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

nomar383

macrumors 65816
Original poster
Jan 29, 2008
1,310
0
Rexburg, ID
I have a root view controller which (right now) pushes to one other view controller when a cell is selected. That's fine for my first 4 cells in the root view controller. But, for cell 5 I want it to push to a second view controller to display the "credits" for my app. How should I do this?
 

jnic

macrumors 6502a
Oct 24, 2008
567
0
Cambridge
I have a root view controller which (right now) pushes to one other view controller when a cell is selected. That's fine for my first 4 cells in the root view controller. But, for cell 5 I want it to push to a second view controller to display the "credits" for my app. How should I do this?

Are you implementing UITableViewDelegate? If so you can just add a check in tableView:didSelectRowAtIndexPath: to see if the selected row was == 5.
 

nomar383

macrumors 65816
Original poster
Jan 29, 2008
1,310
0
Rexburg, ID
No worries, I figured it out. Just an if statement in my appdelegate to determine whether the index path was != 4 or == 4.

Another question though, say I have a table view for my root view controller, then I push to another table view. If I wanted to push to a third table view from there, would my appdelegate by doing the lifting, or would my latest view controller? I haven't been able to find an example online of someone with three table views, one after the other...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.