ECSSlidingViewController, how to move to a specific view programmatically?

妖精的绣舞 提交于 2019-12-13 04:48:49

问题


I'm using an ECSSlidingViewController (on iPhone) it works perfectly but I would like to do something special.

In my App I have an ECSSlidingViewController, a Menu (UITableViewController) for the underLeftViewControllerStoryboardId and several others UINavigationViewController when a menu entry is selected.

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];

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

Sébastien.


回答1:


I'm guessing you're using storyboards:

self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"StoryBoardIdOfNavigationController"];
[self.slidingViewController resetTopViewAnimated:NO];


来源:https://stackoverflow.com/questions/20304025/ecsslidingviewcontroller-how-to-move-to-a-specific-view-programmatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!