if (@available(iOS 13.0, *)) {
CGFloat statusBarHeight = [[UIApplication sharedApplication] windows].firstObject.windowScene.statusBarManager.statusBarFrame.size.height;;
} else {
CGFloat statusBarHeight = [UIApplication sharedApplication].statusBarFrame.size.height;
}
网友评论