弹出后强制推送到页面
我有一个屏幕,用户可以在其中创建登录名并按保存按钮。此时,我弹回到前一个屏幕,其中充满了保存的登录信息,如下所示...
[self.navigationController popViewControllerAnimated:YES];
但是,仅在这种情况下(一旦他们按下“保存”),我想自动将用户推送到另一个屏幕(使用他们刚刚登录)。这是为了确保如果用户返回屏幕,他们会返回到登录列表,而不是“创建新登录”屏幕。
我的问题是在这种情况下如何强制推动?我能否以某种方式使登录页面识别用户刚刚成功登录回来的时间?
I have a screen where the user creates a login and presses the save button. At this point I pop back to the previous screen full of saved logins like this ...
[self.navigationController popViewControllerAnimated:YES];
However, in this scenario only (once they have pressed save), I want to automatically push the user to another screen (effectively logging them in using the login they just made). This is to ensure that if the user goes back a screen, they return to the list of logins and not to the 'create new login' screen.
My question is how can I force this push in this scenario? Can I somehow make the logins page recognise when the user has just come back from successfully making a login?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
或者如果您使用集中式导航控制器
您可以在登录视图控制器中执行此操作
Or if you are using a centralized navigation controller
you can do this in your login view controller