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

View Single Post
Old 08-12-2008, 02:07 PM   #5 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
Default

The issue is actually fixed by forgetting about a TabBarController application. Do everytihng on a basic application basis.

Create your tab bar controller programatically, and your navigationcontroller programmatically too.

then create a UITableViewController and add that to the NavController created in the App Delegate. Add that NavController to the Tab Bar Controller. Add the Tab Bar Controller's view to the window.

Do everything in the App Delegate to do with TabBarControllers and Navigation Controllers. They are simple and easy to make programatically, so why on earth muddle it up with Interface Builder. The fact is, that the templates provided in Xcode have never been the simplest. They have actually been pathetically convoluted. Just create a navigation controller and tab bar controller, add the view Controller to the nav controller, and add the nav controller to the tab bar controller.

I use Interface builder sparingly. It often makes things far more complicated. This is one example of it. NavControllers and TabBarControllers should NEVER be made via interface builder, but by code. Apple never uses interface builder for this, as its way too stupidly set up. The programing way to do it is simpler, and far more understandable when you understand a bit of Objective-C.

Last edited by DevTeamOfOne; 08-12-2008 at 02:10 PM.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,800
Threads: 89,205
Posts: 380,608
Top Poster: BrianSlick (7,129)
Welcome to our newest member, michealteddyus
Powered by vBadvanced CMPS v3.1.0

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