iOS编程

iOS11之tableView顶部内容向下偏移35pt的问题

2019-08-15  本文已影响0人  JxSr程知农
1、原因不一定是下面这两个:
(1)if (@available(iOS 11.0, *)) {
        _tblView.contentInsetAdjustmentBehavior != UIScrollViewContentInsetAdjustmentNever;
    }
(2)_tblView.contentInset != UIEdgeInsetsZero;

2、原因有可能是下面这个:
//需将其中的UITableViewStyleGrouped改为UITableViewStylePlain.
_tblView = [[UITableView alloc]initWithFrame:rect style:UITableViewStyleGrouped]; 

上一篇 下一篇

猜你喜欢

热点阅读