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, 12:30 PM   #161 (permalink)
jmartin113
New Member
 
Join Date: Oct 2008
Posts: 2
jmartin113 is on a distinguished road
Default Tab Bar Controller and Navigation Controller Setup Using Interface Builder

I'm lucky to have stumbled across this thread a couple of days ago, and would like to than everyone for the information presented. I'm new to programming for the Mac/iPhone and have run into the following problem.

MainWindow.xib
I setup everything using IB (by following the video posted in this thread). My First Tab is set to a Navigation Controller (by clicking the status bar in IB). The view within the Navigation Controller is loaded from FirstView.xib.

FirstView.xib
In IB the File's Owner is FirstViewController (the view controller). I have a proxy object containing the App Delegate, a Table View displaying data, and a view controller for the detail (loaded from another xib file called Detail.xib after the selection is made). I've implemented the required methods to allow selection, and the table view is responding to click events.

When a row is clicked, I call the App Delegate and pass the text of the cell that was clicked. In the App Delegate I try to push the next view (detailController), but it doesn't load. The message is getting sent to the App Delegate but when I call pushViewController nothing happens. I don't get any compilation errors and as I click the cells they are highlighted.

[navController pushViewController:detailController animated:YES];

I tried adding a Navigation Controller to FirstView.xib, deleting the proxy object used for the App Delegate and handling the pushing of the view in FirstView.xib's file owner but I get the same results.

I guess my question is.. after following the video posted here
http://www.iphonedevsdk.com/forum/ip...html#post15844
how do I get the navigation portion to work?

Design wise; Should the app delegate be used to handle the pushing of views for each tab? Or would it be better handled by the file's owner of each xib loaded for each tab?

Any help would be appreciated. This is all very new to me. Thank you,
jmartin113 is offline   Reply With Quote
 

» Advertisements
» Online Users: 448
14 members and 434 guests
Ananth, antonwilliams, carmeliaxw97, dbramhall, dre, heshiming, Paul Slocum, Pitter20, 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:45 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.