自從使用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---"); }