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

View Single Post
Old 11-09-2008, 01:21 PM   #163 (permalink)
jmartin113
New Member
 
Join Date: Oct 2008
Posts: 2
jmartin113 is on a distinguished road
Default Thanks

Thanks, how would I go about setting this up using IB? I removed the calls to the app delegate and moved the handling of pushing the view controller in FirstView.xib's File Owner (firstViewController). In IB I dragged a Navigation Controller and wired it to an outlet in firstViewController.

So now firstViewController has links to a tableView, detailController and the Navigation Controller. In the viewDidLoad method of firstViewController I put the following.

navController.viewControllers = [NSArray arrayWithObject:firstViewController];
[tv addSubview:navController.view];

In didSelectRowAtIndexPathNSIndexPath *) indexPath I push the view controller

[self.navController pushViewController:detailViewController animated:YES];

Am I heading in the right direction? I'm not getting any errors but nothing happens as well.

EDITED: After much headache I decided to try this using code and was successful. Surprisingly I was able to get a better understanding of Interface Builder doing it this way. If you're stuck trying something in IB, give it a try in code.

Last edited by jmartin113; 11-13-2008 at 05:34 PM.
jmartin113 is offline   Reply With Quote
 

» Advertisements
» Online Users: 453
15 members and 438 guests
Ananth, antonwilliams, carmeliaxw97, dbramhall, dre, heshiming, Paul Slocum, Pitter20, raymng, Renrob, RETRO, ryantcb, st.Jimmy, UconnAggie, waterkamp
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,594
Threads: 94,083
Posts: 402,778
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kopmlop
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:46 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.