[self.window addSubview:navigationController.view]
versus
self.window.rootViewController = navigationController
it would be any different in terms of pushing view controllers from
the navigation controller? I know rootViewController is iOS 4.0+ only
and it does give you some extra functionality but I didn't know that
it affects whether you can push view controllers from them? (you
should still be able to access the navigation controller using
self.navigationcontroller from a viewcontroller no?)
Raj
We are fixing the issue and we plan to push that fix into the iOS5
compatible SDK which we will release soon.
Raj
[window addSubview:navigationController.view]
it is the same thing (almost) as doing
window.rootviewController = navigationController
I thought that they are both bounding your view to the window.
I'm just reading this under the "Navigation Controller Views" heading
at http://developer.apple.com/library/ios/#documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html.
In your view controller then, you should be able to actually access
the navigation controller by using self.navigationController (I think
you can only do this in the view lifecycle from viewDidLoad onwards).
Let me know if that made things any clearer.
Raj
Raj
http://code.google.com/mobile/ads/download.html
It's even got an update to 5.0.4