UINavigationItem craziness from pushing view controllers with no animation?
hr pI am pushing a codeviewController/code onto the
codeUINavigationController/code with animation, and the controller being
pushed on is basically doing something like:/p pstrong--- app
delegate:/strong/p precode[((UINavigationController
*)window.rootViewController) pushViewController:initialController
animated:YES]; /code/pre pstrong--- initial controller:/strong/p precode-
(void)viewDidLoad { [super viewDidLoad]; if
(self.shouldSkipThisController) { SomeOtherViewController *someOther =
[[SomeOtherViewController alloc] init]; [self.navigationController
pushViewController:someOther animated:NO]; } } /code/pre pThis is causing
some CRAZY behavior which I don't understand at all. Basically, it seems
like the navigation items set on codeSomeOtherViewController/code are
being covered up by some strange other button that has the name of the
title in a back button. It looks like although
codeSomeOtherViewController/code is setting it's own left and right
navigation items, they are covered up by the default back button--- and
then if I tap on that back button, then just the navigation bar at the top
animates-- and THEN codeSomeOtherViewController/code's navigation items
are then there./p pThe only thing I could find that sort of worked was to
either 1) not animate the push of the initial view controller in the app
delegate, or 2) move the codeshouldSkipThisController/code condition into
codeviewDidAppear/code: method./p pHowever, neither of those options are
ideal... Any help could be greatly appreciated./p
No comments:
Post a Comment