Skip to content
New issue

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

about SCREEN_WIDTH in UIDevice+BFKit.swift #2

Closed
jiongge opened this issue Jul 11, 2015 · 1 comment
Closed

about SCREEN_WIDTH in UIDevice+BFKit.swift #2

jiongge opened this issue Jul 11, 2015 · 1 comment
Labels

Comments

@jiongge
Copy link

jiongge commented Jul 11, 2015

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
}

@FabrizioBrancati
Copy link
Owner

Thanks, I've made some tests and seem that your solution works!
I'll implement it in the next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants