晚上,我只是想从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;
}
视图控制器已打开,但我无法再打开菜单了吗?
谢谢你,来自奥地利的克里斯