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 10-19-2008, 06:33 AM   #151 (permalink)
EeKay
Registered Member
 
Join Date: Aug 2008
Location: The Netherlands
Age: 31
Posts: 86
EeKay is on a distinguished road
Default Why it keeps being blank

I just found out that NavigationControllers have the property topViewController; this is the viewcontroller that is shown (it's top of the stack).

Its a read-only property though. I then noticed that there are two options:

1) create the NavigationController from code and use initWithRootViewController and refer to the ViewController that you want to have shown.
// look at the code example at page 32 (creating a navigation contr.) in the "View Controller Programming guide"

2) create the root controller - just like GroupController as stated in the example on page 32 - and then PUSH this rootcontroller to the Navigationcontroller (animated:NO) that is already existing (because it was created using IB).

btw: i moved my Navigationcontroller to the first XIB file so i can push and pop views centrally instead from the second XIB. i then created an IBOutlet so i could refer to the Navigationcontroller and push the view.

hope this helps
__________________
EeKay Sez:: : :

0110100001100101011011000110110001101111 to you !

WwW : www.eekay.nl
mniE : www.mynameise.com/eekay
Twitter : www.twitter.com/eekayonline
EeKay is offline   Reply With Quote
 

» Advertisements
» Online Users: 408
17 members and 391 guests
Chickenrig, daniljan, dansparrow, darrenshain, ephefei, EvilElf, hrushikeshaddon, iconomania, ipodphone, jimmyon122, JmayLive, larhondaxzcw, linkmx, Mnadeep, SamorodovAlex, tomtom100, zhaoningmei
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,588
Threads: 94,083
Posts: 402,775
Top Poster: BrianSlick (7,990)
Welcome to our newest member, daniljan
Powered by vBadvanced CMPS v3.1.0

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