ECSSlidingViewController,如何以编程方式移动到特定视图? [英] ECSSlidingViewController, how to move to a specific view programmatically?

查看:100
本文介绍了ECSSlidingViewController,如何以编程方式移动到特定视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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,如何以编程方式移动到特定视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆