levey / AwesomeMenu

Path 2.0 menu using CoreAnimation :)
https://github.com/levey/AwesomeMenu
Other
5k stars 790 forks source link

your demo can't run, I fixed it !Please see the code in my comment. #72

Open zxwcool opened 8 years ago

zxwcool commented 8 years ago

There is no root view controller in your application delegate, so your demo crashed and I fixed it!

Huang-Libo commented 7 years ago
(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;
}