iOS开发-automaticallyAdjustsScrollViewInsets属性
最近遇到一个问题是这样的,App一般自己都会有一个UINavigationController,顶部TableView如果有tableHeaderView如果设置起始位置是(0,0)是在导航栏的下面的,为了更好地UI希望从屏幕的(0,0)开始,就遇到了上面的这个问题,简单的看一下效果: 主要代码如下: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 - (UITableView *)tableView { if (!_tableView) { _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, CGRectGetWidth( self .view.bounds), CGRectGetHeight( self .view.bounds)) style:UITableViewStylePlain]; // _tableView.tableFooterView = [[UIView alloc] init]; _tab...


