Room preview header in landscape

- Use UIInterfaceOrientationIsLandscape macro
This commit is contained in:
giomfo
2016-06-08 18:56:19 +02:00
parent 6f139ad63b
commit f059313181
+1 -4
View File
@@ -906,10 +906,7 @@
self.previewHeaderContainer.hidden = NO;
// Finalize preview header display according to the screen orientation
UIInterfaceOrientation currentScreenOrientation = [[UIApplication sharedApplication] statusBarOrientation];
BOOL isLandscapeOriented = (currentScreenOrientation == UIInterfaceOrientationLandscapeRight || currentScreenOrientation == UIInterfaceOrientationLandscapeLeft);
[self refreshPreviewHeader:isLandscapeOriented];
[self refreshPreviewHeader:UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])];
}
else
{