UITableView 小节-备

UITableView 让列表自动滑动(定位)到某一行

 

NSIndexPath*scrollIndexPath = [NSIndexPathindexPathForRow:10inSection:0];
[[selftableView]scrollToRowAtIndexPath:scrollIndexPath
       atScrollPosition:UITableViewScrollPositionTopanimated:YES];

 删除cell的动画

NSIndexPath* path = [NSIndexPath indexPathForRow:2 inSection:0];
NSArray* indexPaths = [NSArray arrayWithObjects:path,nil];
[theTableView deleteRowsAtIndexPaths:indexPaths withRowAnimation:UITableViewRowAnimationFade];

 
 

 

原文地址:https://www.cnblogs.com/isItOk/p/5215577.html