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

iphonex适配

parent 7f6082b1
...@@ -52,12 +52,10 @@ ...@@ -52,12 +52,10 @@
if ([NSClassFromString(_cellIdentifier) isSubclassOfClass:[UITableViewCell class]]) { if ([NSClassFromString(_cellIdentifier) isSubclassOfClass:[UITableViewCell class]]) {
[_table registerClass:NSClassFromString(_cellIdentifier) forCellReuseIdentifier:_cellIdentifier]; [_table registerClass:NSClassFromString(_cellIdentifier) forCellReuseIdentifier:_cellIdentifier];
} }
_table.backgroundColor = [UIColor clearColor]; _table.backgroundColor = [UIColor clearColor];
if(@available(iOS 11.0, *)) {
// if(@available(iOS 11.0, *)) { _table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
// _table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; }
// }
[self.view addSubview:_table]; [self.view addSubview:_table];
[_table mas_makeConstraints:^(MASConstraintMaker *make) { [_table mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.equalTo(self.view.mas_left); 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