相关引用
scrollview新特性
_scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
if (@available(iOS 11.0, *)) {
_scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
// Fallback on earlier versions
}
获取状态栏的高度
#define StatusBarHeight CGRectGetHeight([[UIApplication sharedApplication] statusBarFrame])