开发者

UINavigationController - how to not animate when popping using backbutton?

开发者 https://www.devze.com 2023-01-17 13:28 出处:网络
This ought to b开发者_开发知识库e 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 wit

This ought to b开发者_开发知识库e 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?


[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:

0

精彩评论

暂无评论...
验证码 换一张
取 消