From b052a249d6e22e2582e402a87ca8ffff72eec1a6 Mon Sep 17 00:00:00 2001 From: Nguyen Tai Tue Date: Sun, 24 Apr 2016 23:40:50 +0700 Subject: [PATCH 1/2] Update AppDelegate.m Fix missing rootViewController crash error. --- FiltrrApp/FiltrrApp/AppDelegate.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FiltrrApp/FiltrrApp/AppDelegate.m b/FiltrrApp/FiltrrApp/AppDelegate.m index 1159c95..2188383 100644 --- a/FiltrrApp/FiltrrApp/AppDelegate.m +++ b/FiltrrApp/FiltrrApp/AppDelegate.m @@ -29,6 +29,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( self.navController.navigationBar.tintColor = [UIColor blackColor]; self.navController.delegate = self.viewController; + [self.window setRootViewController:self.navController]; + [self.window addSubview:self.navController.view]; [self.window makeKeyAndVisible]; From 4d4ac421c4527dc97748fd83c5ce952ddc155338 Mon Sep 17 00:00:00 2001 From: Nguyen Tai Tue Date: Sun, 24 Apr 2016 23:45:45 +0700 Subject: [PATCH 2/2] Update AppDelegate.m Remove view with navigation controller --- FiltrrApp/FiltrrApp/AppDelegate.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/FiltrrApp/FiltrrApp/AppDelegate.m b/FiltrrApp/FiltrrApp/AppDelegate.m index 2188383..a12a931 100644 --- a/FiltrrApp/FiltrrApp/AppDelegate.m +++ b/FiltrrApp/FiltrrApp/AppDelegate.m @@ -31,8 +31,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [self.window setRootViewController:self.navController]; - [self.window addSubview:self.navController.view]; - [self.window makeKeyAndVisible]; return YES; }