Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this function is called on click of button and dragged
- - (void)dragCell:(CustomCell *)cell
- {
- NSIndexPath *fromIndexPath = [m_tableView indexPathForCell:cell];
- NSArray *array1 = [Array2 objectAtIndex:[fromIndexPath row]];
- [Array2] removeObjectAtIndex:[fromIndexPath row]];
- [Array2] insertObject:page atIndex:[toDestIndexPath row]];//dont know how to get this toDestIndexPath
- [m_tableView moveRowAtIndexPath:fromIndexPath toIndexPath:toDestIndexPath];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement