Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个应用程序,如果它无法加载网页,它会显示错误并返回到上一个屏幕。我很难让它返回到前一个屏幕。
我首先使用 push segue 让它进入屏幕。
谢谢您的帮助。
push segue 需要一个导航控制器,并且使用导航控制器,您可以使用 popViewControllerAnimated:
[self.navigationController popViewControllerAnimated:YES];
尽管许多人会提倡使用委托来完成这样的事情(甚至可能使用模态而不是导航控制器)。