oscarimonbox
12/14/2015 - 12:44 PM

Ocultar status bar según orientación

Ocultar status bar según orientación

-(BOOL)prefersStatusBarHidden{
	
	//FIXME: ocultamos la StatusBar si la orientación del iPad es Landscape
	switch ([[UIDevice currentDevice] orientation]) {
		
		case UIDeviceOrientationLandscapeLeft:
		case UIDeviceOrientationLandscapeRight:
			return YES;
	
		default:
			return NO;
	}
}