diff --git a/AwesomeMenu/AppDelegate.m b/AwesomeMenu/AppDelegate.m index 9331adb..704b39d 100644 --- a/AwesomeMenu/AppDelegate.m +++ b/AwesomeMenu/AppDelegate.m @@ -72,7 +72,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( AwesomeMenu *menu = [[AwesomeMenu alloc] initWithFrame:self.window.bounds startItem:startItem menuItems:menuItems]; menu.delegate = self; - + UIViewController *vc = [[UIViewController alloc] init]; + vc.view = menu; /* Path-like customization @@ -116,7 +117,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( */ - [self.window addSubview:menu]; +// [self.window addSubview:menu]; + [self.window setRootViewController:vc]; [self.window makeKeyAndVisible]; return YES; }