UIViewController 和 UINavigationController 的问题
好的,我需要有关表中此操作的帮助
Ok, i need help for this action in Table
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
好的,我需要有关表中此操作的帮助
Ok, i need help for this action in Table
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您可以使用 -popToRootViewControllerAnimated: 或 -popToViewControllerAnimated:
在返回视图 1 的情况下,请使用:
如果要返回到特定视图控制器,请获取这是参考,然后执行以下操作:
You can either use -popToRootViewControllerAnimated: or -popToViewControllerAnimated:
In your case for returning to view 1, use:
If you want to return to a specific view controller, get it's reference and then do:
如果您使用 Storyboard...
创建一个指向 View1 VC 的 Segue,并在触发“后退”按钮时执行该 Segue。
如果不是,Sid 的答案就是正确的。
If you are using Storyboard...
Create a Segue pointing to View1 VC and perform that Segue when the Back button is triggered.
If not, Sid's answer is correct.