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, 05:59 PM   #12 (permalink)
DevTeamOfOne
New Member
 
Join Date: Aug 2008
Posts: 361
Default

UINavigationController is a very strict class, btw. You seem to be playing around with it from what you were saying, though you were a bit difficult to follow at the end.

Simply add whatever view you want into the NavigationController via the initWithRootViewController method.

Also make sure that you always create the navigationController IN THE APP DELEGATE!!!!! That Is SOOO important. I have seen a few apps on App Store with the stupid error of subclassing UINavigationController in another place other than the app delegate.

Never play around with NavigationController by subclassing it. There is NO reason to, and it creates an error as the navigationController compensates for the status bar at the top of the view. This leaves a big black hole wherever it was subclassed.

Points to take away:

NEVER subclass UINavigationControllers. (same also applies with UITabBarControllers]
Just add whatever ViewController you want via the initWithRootViewController: method

Check out the View Controller Programming Guide for more ideas of what to do with navigationControllers.
DevTeamOfOne is offline   Reply With Quote
 

» Advertisements
» Online Users: 267
15 members and 252 guests
ADY, ckgni, IphoneSdk, iph_s, jakerocheleau, karunaskj, MarkC, michelle, peterkessler45, rob.mccarthy, rodrigozanatta, Speed, V_SC&, Xaron
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,218
Posts: 380,695
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

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