Commit 4550197e authored by 汪洋's avatar 汪洋

iphonex适配

parent 7f6082b1
......@@ -52,12 +52,10 @@
if ([NSClassFromString(_cellIdentifier) isSubclassOfClass:[UITableViewCell class]]) {
[_table registerClass:NSClassFromString(_cellIdentifier) forCellReuseIdentifier:_cellIdentifier];
}
_table.backgroundColor = [UIColor clearColor];
// if(@available(iOS 11.0, *)) {
// _table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
// }
if(@available(iOS 11.0, *)) {
_table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
[self.view addSubview:_table];
[_table mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.view.mas_left);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment