NSIndexPath * updatedPath = [ NSIndexPath indexPathForRow : 0 inSection : 0 ];
NSIndexPath * updatedPath2 = [ NSIndexPath indexPathForRow : 1 inSection : 0 ];
NSArray * updatedPaths = [ NSArray arrayWithObjects : updatedPath , updatedPath2 , nil ];
[ self . mySexyTableView reloadRowsAtIndexPaths : updatedPaths withRowAnimation : UITableViewRowAnimationTop ]; dd
NSMutableArray * updatedPaths = [ NSMutableArray array ];
for ( NSNumber * row in someArray ) {
NSIndexPath * updatedPath = [ NSIndexPath indexPathForRow :[ row intValue ] inSection : 0 ];
[ updatedPaths addObject : updatedPath ];
}
[ self . mySexyTableView reloadRowsAtIndexPaths : updatedPaths withRowAnimation : UITableViewRowAnimationTop ];
[ segmentTable reloadRowsAtIndexPaths : [[ NSArray alloc ] initWithObjects :
[ NSIndexPath indexPathForRow : 1 inSection : 1 ],
[ NSIndexPath indexPathForRow : 1 inSection : 1 ], nil ]
withRowAnimation : UITableViewRowAnimationNone ];
点击UITableView中某一行,重新绘制该行
最新推荐文章于 2022-03-31 11:18:01 发布