自从使用xcode6后,有一些小细节须要注意一下,在加载storyboard的时候必定不要忘记勾选 entry point。特别是主框架是代码,而后个别控制器须要加载storyboard的时候xcode
- (void)pop { //弹出请假的窗口 UIViewController *rootVc = [UIApplication sharedApplication].keyWindow.rootViewController; UIStoryboard *storyboard=[UIStoryboard storyboardWithName:@"qingjia" bundle:nil]; KltLeaveViewController *commm= [storyboard instantiateInitialViewController]; [rootVc presentViewController:[[UINavigationController alloc]initWithRootViewController:commm] animated:YES completion:nil]; NSLog(@"pop---"); }