如果不想让系统自动帮助进行默认内边距设置,可取消掉
如果要在ios11上运行,那么需要手动代码设置当前控制器的view
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
如果是ios7,那么
self.automaticallyAdjustsScrollViewInsets = NO;
具体的原理,还需深入分析,暂时标注
如果不想让系统自动帮助进行默认内边距设置,可取消掉
如果要在ios11上运行,那么需要手动代码设置当前控制器的view
self.tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
如果是ios7,那么
self.automaticallyAdjustsScrollViewInsets = NO;
具体的原理,还需深入分析,暂时标注