//顶部navi 设置
#define kStatusRectHeight [[UIApplication sharedApplication] statusBarFrame].size.height
#define KIsiPhoneX ([UIScreen instancesRespondToSelector:@selector(currentMode)] ? CGSizeEqualToSize(CGSizeMake(1125, 2436), [[UIScreen mainScreen] currentMode].size) : NO)
#define kNaviHeight kStatusRectHeight + 44
// tableview 设置
if (@available(iOS 11.0, *)) {
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentAutomatic;
}
//masonry 配置
make.bottom.mas_equalTo(self.view.mas_safeAreaLayoutGuideBottom)
网友评论