【发布时间】:2015-08-19 08:33:08
【问题描述】:
我想在到达我的视图后在我的 SWRevealViewController 视图上自动启动。
例如,我在 SWRevealViewController 上,然后在另一个视图上。如果我想回去,我想继续我以前的状态:后视图中的 SWRevealViewController。
当我尝试过时,我已经做到了:
if (myPreviousVC == "editProfile")
{
UIApplication.sharedApplication().sendAction(menuButton.action, to: menuButton.target, from: self, forEvent: nil)
}
这段代码只是按下我的 menuButton 来启动我的 SWRevealViewController。
但我不喜欢这种方式,我想知道是否有办法在我到达前视图时启动我的 SWRevealViewController。
【问题讨论】:
标签: swift swrevealviewcontroller