ios 8 device size UIDeviceOrientationPortraitUpsideDown error
Closed this issue · 1 comments
rafaelpereznajera commented
on ios 8 returning UnknownSize when the orientation is UIDeviceOrientationPortraitUpsideDown.
if (orientation == UIDeviceOrientationPortrait)
screenHeight = [[UIScreen mainScreen] bounds].size.height;
else if((orientation == UIDeviceOrientationLandscapeRight) || (orientation == UIInterfaceOrientationLandscapeLeft))
screenHeight = [[UIScreen mainScreen] bounds].size.width;
UIDeviceOrientationPortraitUpsideDown is missing on the if.