我正在使用 SWRevealViewController 库。使用 AppCoda 教程(也非常好),我设法让它运作良好。但是,我现在已经配置了一个“设置”屏幕,我想在其中将内容保存到 Core Data 中,然后将屏幕弹出回主屏幕。
因为设置屏幕有一个嵌入式导航栏,而 iOS 7 不允许导航栏中的导航栏,所以我使用了一种变通方法来调用它。
// Get the view controller
UIViewController *vcNew = [[UIStoryboard storyboardWithName:@"Main" bundle:NULL] instantiateViewControllerWithIdentifier:vcName];
// Swap out the Front view controller and display
[self.revealViewController setFrontViewController:vcNew];
[self.revealViewController setFrontViewPosition: FrontViewPositionLeft animated: YES];
我现在不知道该怎么做,是如何弹出这个。
标准:[self.navigationController popViewControllerAnimated:YES]; 和 [self dismissViewControllerAnimated:YES 完成:nil];
似乎根本不起作用。
我从 John Lluch 的文档中注意到,现在有必要使用“pushFrontViewController”。但是,我不清楚如何做到这一点。
我假设我使用这样的东西:
[self.revealViewController pushFrontViewController:<(UIViewController *)> animated:<(BOOL)>]
但是 UIViewController 的身份是什么?