Fix landscape screenshot issues in iOS 8

This commit is contained in:
Andreas Linde
2015-02-18 15:08:15 +01:00
parent bc475061f2
commit b9f149b33e
2 changed files with 11 additions and 6 deletions

View File

@@ -153,7 +153,7 @@ typedef NS_ENUM(NSInteger, BITImageAnnotationViewControllerInteractionMode) {
- (void)fitImageViewFrame {
CGSize size = [UIScreen mainScreen].bounds.size;
if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation)){
if (UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation) && size.height > size.width){
size = CGSizeMake(size.height, size.width);
}