UITableView 出现默认滚动到底部的方法(不闪动)

- (void)viewDidLoad {

    [super viewDidLoad];

// 添加控件等操作

    [self.customsTableView reloadData];

    dispatch_async(dispatch_get_main_queue(),^{

        if (self.customsTableView.contentSize.height >kScreenHeight) {

            [self.customsTableView setContentOffset:CGPointMake(0, self.customsTableView.contentSize.height -self.customsTableView.bounds.size.height) animated:NO];

        }

    });

}

 

posted @ 2018-09-11 15:00  ruixin_jia  阅读(1316)  评论(0编辑  收藏  举报