UITableView 让列表自动滑动(定位)到某一行
NSIndexPath
*scrollIndexPath = [
NSIndexPath
indexPathForRow
:
1
0
inSection
:
0
];
[[
self
tableView
]
scrollToRowAtIndexPath
:scrollIndexPath
atScrollPosition
:
UITableViewScrollPositionTop
animated
:
YES
];
删除cell的动画
NSIndexPath* path = [NSIndexPath indexPathForRow:2 inSection:0];
NSArray* indexPaths = [NSArray arrayWithObjects:path,nil];
[theTableView deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationFade];