UITableViewCell自动滚动到顶部
首先使用selectRowAtIndexes: 选择行数,滚动的话tableview的superview时scrollview,scrollview可以滚动到某个position 那么就要计算这个position position = table row height * index,就得到滚动的位置了。
[tableView scrollToRowAtIndexPath:[NSIndexPathindexPathForRow:0inSection:0] atScrollPosition:UITableViewScrollPositionTopanimated:YES];