2

UINavigationController在深入了几页之后,我想回到开头。如果我尝试以下代码,它只会返回一个视图。

[self.navigationController popViewControllerAnimated:YES];

我想在右上角的“取消”按钮上执行此操作。

4

1 回答 1

17
[self.navigationController popToRootViewControllerAnimated:YES];
于 2010-02-24T17:55:21.320 回答