Return to Snippet

Revision: 38060
at December 23, 2010 20:04 by joshparnham


Initial Code
-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
	if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft||UIInterfaceOrientationLandscapeRight) {
		[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];
	}
	if (toInterfaceOrientation == UIInterfaceOrientationPortrait) {
		[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
	}

}

Initial URL

                                

Initial Description

                                

Initial Title
Remove status bar when the iOS device is landscape orientation

Initial Tags

                                

Initial Language
Objective C