Skip to content

Commit 8b927c5

Browse files
committed
Fix bug
Former-commit-id: 3c81ca7
1 parent ef6aac5 commit 8b927c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MVVMReactiveCocoa/Resource/Vertigo/Vertigo/TGRImageViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ - (BOOL)prefersStatusBarHidden {
5151
}
5252

5353
- (NSUInteger)supportedInterfaceOrientations {
54-
return UIInterfaceOrientationMaskPortrait;
54+
return isPad ? UIInterfaceOrientationMaskLandscape : UIInterfaceOrientationMaskPortrait;
5555
}
5656

5757
#pragma mark - UIScrollViewDelegate methods

0 commit comments

Comments
 (0)