sebyddd/SDVersion

ios 8 device size UIDeviceOrientationPortraitUpsideDown error

Closed this issue · 1 comments

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.

Fixed in 4bf88c9.