From 5e46d766982c617c9780470871409f6e0b1db13a Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Mon, 4 Feb 2013 00:29:22 -0800 Subject: [PATCH] Move the logic to hide the NavigationBar when entering the ImageCropViewController from viewDidLoad to viewWillAppear:animated: --- GKClasses/GKImageCropViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GKClasses/GKImageCropViewController.m b/GKClasses/GKImageCropViewController.m index b29f638..c8dde39 100644 --- a/GKClasses/GKImageCropViewController.m +++ b/GKClasses/GKImageCropViewController.m @@ -173,9 +173,12 @@ - (void)viewDidLoad{ [self _setupNavigationBar]; [self _setupCropView]; [self _setupToolbar]; +} +- (void)viewWillAppear:(BOOL)animated{ + [super viewWillAppear:animated]; if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { - [self.navigationController setNavigationBarHidden:YES]; + [self.navigationController setNavigationBarHidden:YES animated:animated]; } }