UIApplication setStatusBarHidden:animation has been deprecated since iOS 3.2, use setStatusBarHidden:withAnimation instead.

This commit is contained in:
marynate 2014-02-15 20:01:26 +08:00
parent d38cf2e396
commit 2371a92fde
1 changed files with 1 additions and 1 deletions

View File

@ -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;