问题描述
我正在使用ECSSlidingViewController(在iPhone上),它可以正常工作,但我想做一些特别的事情.
I'm using an ECSSlidingViewController (on iPhone) it works perfectly but I would like to do something special.
在我的应用程序我对underLeftViewControllerStoryboardId和其他几个UINavigationViewController一个ECSSlidingViewController,一个菜单(的UITableViewController)当一个菜单项被选择.
In my App I have an ECSSlidingViewController, a Menu (UITableViewController) for the underLeftViewControllerStoryboardId and several others UINavigationViewController when a menu entry is selected.
用户可以使用邮件中的附件从Mail App导航到我的App.发生这种导航(并且应用程序已经启动)时,我需要从菜单中显示一个UINavigationViewController.
A user can navigate from the Mail App to my App using an attachment in the mail. When this navigation happens (and the App was already started) I need to display one of the UINavigationViewController from my Menu.
我可以使用以下代码在用户位于应用层次结构中的任何位置显示菜单
I'm able to display the Menu anywhere the user is in the App hierarchy with the following code
ECSlidingViewController* viewController = [DataCenter sharedInstance].slidingViewController;
[viewController anchorTopViewToRightAnimated:FALSE];
接下来,我无法在全屏上显示我想显示的UINavigationViewController.
Next, I'm not able to display on the full screen the UINavigationViewController I would like to show.
任何想法该怎么做?谢谢您的帮助
Any idea how to do that?Thanks for your help
塞巴斯蒂安.
推荐答案
我猜您正在使用情节提要:
I'm guessing you're using storyboards:
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"StoryBoardIdOfNavigationController"];
[self.slidingViewController resetTopViewAnimated:NO];
这篇关于ECSSlidingViewController,如何以编程方式移动到特定视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!