We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIScreen.mainScreen().bounds.size is same regardless of the direction of mobile phone before iOS_7_1 ,but it's changed after iOS_7_1
for example: //////////////////////// func getFixedScreenSize()->CGSize{ let screenSize=UIScreen.mainScreen().bounds.size if((NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1)&&UIInterfaceOrientationIsLandscape(UIApplication.sharedApplication().statusBarOrientation)){ return CGSizeMake(screenSize.height, screenSize.width) } return screenSize }
The text was updated successfully, but these errors were encountered:
Thanks, I've made some tests and seem that your solution works! I'll implement it in the next version.
Sorry, something went wrong.
89229fb
No branches or pull requests
UIScreen.mainScreen().bounds.size is same regardless of the direction of mobile phone before iOS_7_1 ,but it's changed after iOS_7_1
for example:
////////////////////////
func getFixedScreenSize()->CGSize{
let screenSize=UIScreen.mainScreen().bounds.size
if((NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1)&&UIInterfaceOrientationIsLandscape(UIApplication.sharedApplication().statusBarOrientation)){
return CGSizeMake(screenSize.height, screenSize.width)
}
return screenSize
}
The text was updated successfully, but these errors were encountered: