From 2371a92fde0e88d80a898931d4d6bfb541607f7a Mon Sep 17 00:00:00 2001 From: marynate Date: Sat, 15 Feb 2014 20:01:26 +0800 Subject: [PATCH] UIApplication setStatusBarHidden:animation has been deprecated since iOS 3.2, use setStatusBarHidden:withAnimation instead. --- platform/iphone/app_delegate.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/iphone/app_delegate.mm b/platform/iphone/app_delegate.mm index 9677c18c173..3cdca68595a 100644 --- a/platform/iphone/app_delegate.mm +++ b/platform/iphone/app_delegate.mm @@ -165,7 +165,7 @@ static int frame_count = 0; printf("**************** app delegate init\n"); CGRect rect = [[UIScreen mainScreen] bounds]; - [application setStatusBarHidden:YES animation:NO]; + [application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone]; // disable idle timer application.idleTimerDisabled = YES;