diff --git a/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m b/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m index e767fc4..2b0d3c6 100644 --- a/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m +++ b/Examples/ExpanderDemo/Classes/ExpanderDemoAppDelegate.m @@ -53,7 +53,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( // Override point for customization after application launch. viewController.view.frame = [[UIScreen mainScreen] applicationFrame]; - [window addSubview:viewController.view]; + [window setRootViewController:viewController]; [window makeKeyAndVisible]; return YES; }