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

Posted ruixin-jia

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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];

        }

    });

}

 

以上是关于UITableView 出现默认滚动到底部的方法(不闪动)的主要内容,如果未能解决你的问题,请参考以下文章