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
- (FDIndexPathHeightsBySection *)heightsBySectionForCurrentOrientation { return UIDeviceOrientationIsPortrait([UIDevice currentDevice].orientation) ? self.heightsBySectionForPortrait: self.heightsBySectionForLandscape; }
在手机竖屏模式,平放在桌面上,此时[UIDevice currentDevice].orientation == UIDeviceOrientationFaceUp,会导致类似的逻辑取错缓存容器。 应该换用UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)才是正确的,但是在横竖屏切换瞬间,[UIApplication sharedApplication].statusBarOrientation这个取值也会有延迟。
[UIDevice currentDevice].orientation == UIDeviceOrientationFaceUp
UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)
[UIApplication sharedApplication].statusBarOrientation
The text was updated successfully, but these errors were encountered:
No branches or pull requests
在手机竖屏模式,平放在桌面上,此时
[UIDevice currentDevice].orientation == UIDeviceOrientationFaceUp
,会导致类似的逻辑取错缓存容器。应该换用
UIInterfaceOrientationIsPortrait([UIApplication sharedApplication].statusBarOrientation)
才是正确的,但是在横竖屏切换瞬间,[UIApplication sharedApplication].statusBarOrientation
这个取值也会有延迟。The text was updated successfully, but these errors were encountered: