【问题标题】:Proper way to logout and return to the rootViewController注销并返回rootViewController的正确方法
【发布时间】:2014-09-24 06:54:20
【问题描述】:

我的 ios 应用程序中有一个注销机制,当用户单击按钮时,用户会被注销。如何正确重定向到 rootViewController?

我只是这样做吗:

[self presentViewController:photo animated:YES completion:nil];

【问题讨论】:

  • 你可以这样做:[self.navigationController popToRootViewControllerAnimated:YES];

标签: ios ios7 uiviewcontroller


【解决方案1】:

试试这个

 [self.navigationController popToRootViewControllerAnimated:YES];

【讨论】:

  • 谢谢,这正是我想要的
猜你喜欢
  • 1970-01-01
  • 2018-01-14
  • 1970-01-01
  • 1970-01-01
  • 2011-03-31
  • 2013-09-27
  • 1970-01-01
  • 2015-08-01
  • 2012-08-07
相关资源
最近更新 更多