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

Support ActionSheet width to full-screen-width in 4.7 inch and 5.5 inch devices #38

Merged
merged 2 commits into from
Sep 17, 2014

Conversation

nowsprinting
Copy link

  • Add 4.7-Retina and 5.5-RetinaHD launch images. Because need get real display sizes
  • In iOS 8.0, change [[UIScreen mainScreen] bounds].size return value to port/land direction conscious

return CGSizeMake(320 , IS_WIDESCREEN ? 568 : 480);
return CGSizeMake(IS_WIDESCREEN ? 568 : 480, 320);
if (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_7_1) {
//iOS 7.1 or earlier
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it really needed here? It seems that return [[UIScreen mainScreen] bounds].size; w\o any check should works fine. What did you think?

@nowsprinting
Copy link
Author

Without this, in landscape mode on iOS7.1(or earlier), the width of the action-sheet does not become narrower?

@skywinder
Copy link
Owner

Ok! Got it.
Now [UIScreen mainScreen].bounds.size is changed in iOS 8. link to stackoverflow
Thanks, @nowsprinting! 👍

skywinder added a commit that referenced this pull request Sep 17, 2014
Support ActionSheet width to full-screen-width in 4.7 inch and 5.5 inch devices
@skywinder skywinder merged commit 9a07141 into skywinder:master Sep 17, 2014
@nowsprinting nowsprinting deleted the support-large-display branch April 20, 2018 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants