Merge pull request #722 from nguyenhuy/RelayoutCellAPI

Add relayout item/row APIs to ASTableView and ASCollectionView
This commit is contained in:
appleguy
2015-10-25 21:28:20 -07:00
8 changed files with 57 additions and 8 deletions

View File

@@ -214,6 +214,18 @@
*/
- (void)reloadRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation:(UITableViewRowAnimation)animation;
/**
* Relayouts the specified row using a given animation effect.
*
* @param indexPath The index path identifying the row to relayout.
*
* @param animation A constant that indicates how the relayout is to be animated. See UITableViewRowAnimation.
*
* @discussion This method must be called from the main thread. The relayout is excuted on main thread.
* The node of the specified row must be updated to cause layout changes before this method is called.
*/
- (void)relayoutRowAtIndexPath:(NSIndexPath *)indexPath withRowAnimation:(UITableViewRowAnimation)animation;
/**
* Moves the row at a specified location to a destination location.
*