views:

25

answers:

1

This ought to be simple but I just can't figure this one out:

The default behaviour when clicking the backbutton in a UINavigationController is that the current view gets popped with an animation. How can I override the default behaviour so that this transition is not animated?

+1  A: 

[self.navigationController popToViewController:viewController animated:NO];

http://developer.apple.com/library/ios/documentation/uikit/reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/instm/UINavigationController/popToViewController:animated:

Larsaronen
That is the method call, yes - but how can I prevent or override the default backbutton behaviour of seemingly calling this method with the animated parameter set to YES?
Millions
http://www.hanspinckaers.com/custom-action-on-back-button-uinavigationcontroller
Larsaronen
Thank you - that worked fine.
Millions