UITableView一出现就滚动到底部(类似微信,qq聊天界面)
重写tableView所在控制器的 viewDidLayoutSubviews 方法,在此方法里面做滚动操作。
-(void)viewDidLayoutSubviews{
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:9 inSection:0];
[self.customsTableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionBottom animated:NO];
}