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
检查后发现是因为XHLaunchImageView使用了[UIScreen mainScreen].bounds作为创建大小 而在分屏模式下 app大小和screen大小是不一致的
[UIScreen mainScreen].bounds
借用了QMUI的一段代码,修改后一切正常
+ (CGSize)applicationSize { /// applicationFrame 在 iPad 下返回的 size 要比 window 实际的 size 小,这个差值体现在 origin 上,所以用 origin + size 修正得到正确的大小。 BeginIgnoreDeprecatedWarning CGRect applicationFrame = [UIScreen mainScreen].applicationFrame; EndIgnoreDeprecatedWarning return CGSizeMake(applicationFrame.size.width + applicationFrame.origin.x, applicationFrame.size.height + applicationFrame.origin.y); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
检查后发现是因为XHLaunchImageView使用了
[UIScreen mainScreen].bounds
作为创建大小而在分屏模式下 app大小和screen大小是不一致的
借用了QMUI的一段代码,修改后一切正常
The text was updated successfully, but these errors were encountered: