CB-10606 fix deprecation warning for interfaceOrientation

This closes #82
This commit is contained in:
Edna Morales 2016-02-12 23:05:50 -05:00
parent 2e1ec32916
commit e401a4de0f

View File

@ -327,7 +327,7 @@
CGRect imgBounds = (img) ? CGRectMake(0, 0, img.size.width, img.size.height) : CGRectZero;
CGSize screenSize = [self.viewController.view convertRect:[UIScreen mainScreen].bounds fromView:nil].size;
UIInterfaceOrientation orientation = self.viewController.interfaceOrientation;
UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
CGAffineTransform imgTransform = CGAffineTransformIdentity;
/* If and only if an iPhone application is landscape-only as per