标签: iphone uinavigationcontroller
这应该很简单,但我无法想出这个:
单击UINavigationController中的后退按钮时的默认行为是当前视图弹出动画。如何覆盖默认行为,以便不转换此转换?
答案 0 :(得分:2)
[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: