mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Deprecate indexPath-based Methods on ASTableView/ASCollectionView (#2498)
* Deprecated indexPath methods in ASTableView and ASTableNode and added several indexPath methods to ASTableNode and ASCollectionNode. * Fixed incorrect doc. Removed unnecessary __kindof.
This commit is contained in:
@@ -45,4 +45,18 @@
|
||||
*/
|
||||
- (NSIndexPath *)convertIndexPathFromTableNode:(NSIndexPath *)indexPath waitingIfNeeded:(BOOL)wait;
|
||||
|
||||
/**
|
||||
* Attempt to get the node index path given the view-layer index path.
|
||||
*
|
||||
* @param indexPath The index path of the row.
|
||||
*/
|
||||
- (NSIndexPath *)convertIndexPathToTableNode:(NSIndexPath *)indexPath;
|
||||
|
||||
/**
|
||||
* Attempt to get the node index paths given the view-layer index paths.
|
||||
*
|
||||
* @param indexPaths An array of index paths in the view space
|
||||
*/
|
||||
- (NSArray<NSIndexPath *> *)convertIndexPathsToTableNode:(NSArray<NSIndexPath *> *)indexPaths;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user