mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Fix landscape screenshot issues in iOS 8
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user