竖屏全屏的时候,在灵动岛上返回按钮被遮住
qllqll opened this issue · 0 comments
qllqll commented
在ZFLandScapeControlView里面,设置backbtn的y坐标为44 会被遮住 ,用这个判断就不会了
/// 顶部状态栏高度(包括安全区)
- (CGFloat)tkww_statusBarHeight {
if (@available(iOS 13.0, *)) {
NSSet *set = [UIApplication sharedApplication].connectedScenes;
UIWindowScene *windowScene = [set anyObject];
UIStatusBarManager *statusBarManager = windowScene.statusBarManager;
return statusBarManager.statusBarFrame.size.height;
} else {
return [UIApplication sharedApplication].statusBarFrame.size.height;
}
}