Application windows are expected to have a root view controller at the end of application launch
2013-04-22 09:32
489 查看
Application windows are expected to have a root view controller at the end of application launch
在我创建了一个空项目,并向其中添加界面元素的时候,出现这个提示。
解决办法是:
将
替换为
当然,你也可以自己添加一个rootView。
在我创建了一个空项目,并向其中添加界面元素的时候,出现这个提示。
解决办法是:
将
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; }
替换为
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { return YES; }
当然,你也可以自己添加一个rootView。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override point for customization after application launch. YcanMainViewController *mainViewController = [[YcanMainViewController alloc] init]; UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:mainViewController]; self.window.rootViewController = nav; self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible]; return YES; }
相关文章推荐
- Application windows are expected to have a root view controller at the end of application launch解决方法
- Application windows are expected to have a root view controller at the end of application launch
- 'Application windows are expected to have a root view controller at the end of application launch' [
- “Application windows are expected to have a root view controller at the end of application launch”
- 'Application windows are expected to have a root view controller at the end of application launch'
- Application windows are expected to have a root view controller at the end of application launch'
- 'Application windows are expected to have a root view controller at the end of application launch'
- Application windows are expected to have a root view controller at the end of application launch
- Application windows are expected to have a root view controller at the end of application launch 的解决
- Application windows are expected to have a root view controller at the end of application launch问题分析
- Application windows are expected to have a root view controller at the end of application launch
- 关于Application windows are expected to have a root view controller at the end of application launch
- Application windows are expected to have a root view controller at the end of appliaction launch.
- Application windows are expected to have a root view controller at the end of application launch
- Application windows are expected to have a root view controller at the end of application launch
- Application windows are expected to have a root view controller at the end of appliaction launch.
- Application windows are expected to have a root view controller at the end of application launch
- 在写引导页面时,出现Application windows are expected to have a root view controller at the end of application
- Applications are expected to have a root view controller at the end of application launch
- iOS 9出现错误Applications are expected to have a root view controller at the end of application launch