从Appdelegate REFrostedViewController打开Viewcontroller

时间:2014-06-25 17:50:51

标签: ios objective-c xcode

晚上,我只是想从AppDelegate打开一个VIEW CONTROLLER。

我使用的例子> REFrostedViewController / Examples / storyboards /

https://github.com/romaonthego/REFrostedViewController

我的代码:

//  DEMOAppDelegate.m
#import "DEMOAppDelegate.h"
#import "DEMOSecondViewController.h"

@implementation DEMOAppDelegate
- (void)applicationWillEnterForeground:(UIApplication *)application {
  DEMOSecondViewController *NewsTabController=[[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"secondController"];
    UINavigationController *navController=[[UINavigationController alloc]initWithRootViewController:NewsTabController];
    self.window.rootViewController = navController;
}

视图控制器已打开,但我无法再打开菜单了吗?

谢谢你,来自奥地利的克里斯

0 个答案:

没有答案