You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exactly. The table should scroll up/down while dragging the cell.
Currently, the table does not scroll while dragging the cell.
How can I make the table scroll if I want to drag a cell from first position to the last position or from last position to first position?
Hmm OK. The framework doesn't offer this out of the box, but I'm fairly confident you should be able to build it in to your app. Off the top of my head, you could attach your own UIPanGestureRecognizers to a table view (see here) which could use its own UIGestureRecognizerDelegate to detect when the user pans over the bottom of the table and automatically scroll it. E.g. here is some pseudocode:
- (void)handlePan:(UIGestureRecognizer *)recognizer {
if (_coordinator.currentDraggingCollection == _myTable && /* _coordinator.currentDragOrigin is inside the bottom of the table */) {
[_myTable setContentOffset:/* some offset - maybe _coordinator.currentDragOrigin? */animated:@YES];
}
}
Drag and drop does not scroll the UITableView. How to implement the scrolling functionality while dragging?
The text was updated successfully, but these errors were encountered: