@@ -124,17 +124,22 @@ NS_ASSUME_NONNULL_BEGIN
124124 */
125125- (void )setTuningParameters : (ASRangeTuningParameters)tuningParameters forRangeMode : (ASLayoutRangeMode)rangeMode rangeType : (ASLayoutRangeType)rangeType ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
126126
127- /* *
128- * Scrolls the table to the given row.
129- *
130- * @param indexPath The index path of the row.
131- * @param scrollPosition Where the row should end up after the scroll.
132- * @param animated Whether the scroll should be animated or not.
133- */
127+ - (nullable __kindof UITableViewCell *)cellForRowAtIndexPath : (NSIndexPath *)indexPath ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
128+
134129- (void )scrollToRowAtIndexPath : (NSIndexPath *)indexPath atScrollPosition : (UITableViewScrollPosition)scrollPosition animated : (BOOL )animated ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
135130
136131- (void )selectRowAtIndexPath : (NSIndexPath *)indexPath animated : (BOOL )animated scrollPosition : (UITableViewScrollPosition)scrollPosition ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
137132
133+ @property (nonatomic, readonly, nullable) NSIndexPath *indexPathForSelectedRow ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode property instead." );
134+
135+ @property (nonatomic, readonly, nullable) NSArray <NSIndexPath *> *indexPathsForSelectedRows ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode property instead." );
136+
137+ @property (nonatomic, readonly, nullable) NSArray <NSIndexPath *> *indexPathsForVisibleRows ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode property instead." );
138+
139+ - (nullable NSIndexPath *)indexPathForRowAtPoint : (CGPoint)point ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
140+
141+ - (nullable NSArray <NSIndexPath *> *)indexPathsForRowsInRect : (CGRect)rect ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
142+
138143/* *
139144 * Similar to -visibleCells.
140145 *
@@ -182,26 +187,8 @@ NS_ASSUME_NONNULL_BEGIN
182187 */
183188- (void )relayoutItems ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
184189
185- /* *
186- * Begins a series of method calls that insert, delete, select, or reload rows and sections of the table view, with animation enabled and no completion block.
187- *
188- * @discussion You call this method to bracket a series of method calls that ends with endUpdates and that consists of operations
189- * to insert, delete, select, and reload rows and sections of the table view. When you call endUpdates, ASTableView begins animating
190- * the operations simultaneously. It's important to remember that the ASTableView will be processing the updates asynchronously after this call is completed.
191- *
192- * @warning This method must be called from the main thread.
193- */
194190- (void )beginUpdates ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode's -performBatchUpdates:completion: instead." );
195191
196- /* *
197- * Concludes a series of method calls that insert, delete, select, or reload rows and sections of the table view, with animation enabled and no completion block.
198- *
199- * @discussion You call this method to bracket a series of method calls that begins with beginUpdates and that consists of operations
200- * to insert, delete, select, and reload rows and sections of the table view. When you call endUpdates, ASTableView begins animating
201- * the operations simultaneously. It's important to remember that the ASTableView will be processing the updates asynchronously after this call is completed.
202- *
203- * @warning This method is must be called from the main thread.
204- */
205192- (void )endUpdates ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode's -performBatchUpdates:completion: instead." );
206193
207194/* *
@@ -224,100 +211,20 @@ NS_ASSUME_NONNULL_BEGIN
224211 */
225212- (void )waitUntilAllUpdatesAreCommitted ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
226213
227- /* *
228- * Inserts one or more sections, with an option to animate the insertion.
229- *
230- * @param sections An index set that specifies the sections to insert.
231- *
232- * @param animation A constant that indicates how the insertion is to be animated. See UITableViewRowAnimation.
233- *
234- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
235- * before this method is called.
236- */
237214- (void )insertSections : (NSIndexSet *)sections withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
238215
239- /* *
240- * Deletes one or more sections, with an option to animate the deletion.
241- *
242- * @param sections An index set that specifies the sections to delete.
243- *
244- * @param animation A constant that indicates how the deletion is to be animated. See UITableViewRowAnimation.
245- *
246- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
247- * before this method is called.
248- */
249216- (void )deleteSections : (NSIndexSet *)sections withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
250217
251- /* *
252- * Reloads the specified sections using a given animation effect.
253- *
254- * @param sections An index set that specifies the sections to reload.
255- *
256- * @param animation A constant that indicates how the reloading is to be animated. See UITableViewRowAnimation.
257- *
258- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
259- * before this method is called.
260- */
261218- (void )reloadSections : (NSIndexSet *)sections withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
262219
263- /* *
264- * Moves a section to a new location.
265- *
266- * @param section The index of the section to move.
267- *
268- * @param newSection The index that is the destination of the move for the section.
269- *
270- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
271- * before this method is called.
272- */
273220- (void )moveSection : (NSInteger )section toSection : (NSInteger )newSection ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
274221
275- /* *
276- * Inserts rows at the locations identified by an array of index paths, with an option to animate the insertion.
277- *
278- * @param indexPaths An array of NSIndexPath objects, each representing a row index and section index that together identify a row.
279- *
280- * @param animation A constant that indicates how the insertion is to be animated. See UITableViewRowAnimation.
281- *
282- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
283- * before this method is called.
284- */
285222- (void )insertRowsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
286223
287- /* *
288- * Deletes the rows specified by an array of index paths, with an option to animate the deletion.
289- *
290- * @param indexPaths An array of NSIndexPath objects identifying the rows to delete.
291- *
292- * @param animation A constant that indicates how the deletion is to be animated. See UITableViewRowAnimation.
293- *
294- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
295- * before this method is called.
296- */
297224- (void )deleteRowsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
298225
299- /* *
300- * Reloads the specified rows using a given animation effect.
301- *
302- * @param indexPaths An array of NSIndexPath objects identifying the rows to reload.
303- *
304- * @param animation A constant that indicates how the reloading is to be animated. See UITableViewRowAnimation.
305- *
306- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
307- * before this method is called.
308- */
309226- (void )reloadRowsAtIndexPaths : (NSArray <NSIndexPath *> *)indexPaths withRowAnimation : (UITableViewRowAnimation)animation ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
310227
311- /* *
312- * Moves the row at a specified location to a destination location.
313- *
314- * @param indexPath The index path identifying the row to move.
315- *
316- * @param newIndexPath The index path that is the destination of the move for the row.
317- *
318- * @discussion This method must be called from the main thread. The asyncDataSource must be updated to reflect the changes
319- * before this method is called.
320- */
321228- (void )moveRowAtIndexPath : (NSIndexPath *)indexPath toIndexPath : (NSIndexPath *)newIndexPath ASDISPLAYNODE_DEPRECATED_MSG(" Use ASTableNode method instead." );
322229
323230// / Deprecated in 2.0. You should not call this method.
0 commit comments