Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run crash #79

Open
mountainKingG opened this issue Jul 19, 2016 · 1 comment
Open

run crash #79

mountainKingG opened this issue Jul 19, 2016 · 1 comment

Comments

@mountainKingG
Copy link

AwesomeMenu[15456:271322] *** Assertion failure in -[UIApplication _runWithMainScene:transitionContext:completion:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3512.60.7/UIApplication.m:3401
2016-07-19 20:30:52.682 AwesomeMenu[15456:271322] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application windows are expected to have a root view controller at the end of application launch'

@mobiletech2100
Copy link

(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
self.window.backgroundColor = [UIColor whiteColor];
.............
.............
.............
UIViewController rootCtr = [[UIViewController alloc] init];
UINavigationController
nav = [[UINavigationController alloc] initWithRootViewController:rootCtr];
[rootCtr.view addSubview:menu];
[self.window setRootViewController:nav];
// [self.window addSubview:menu];
[self.window makeKeyAndVisible];
return YES;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants