GMGridView
GMGridView copied to clipboard
sortingDelegate additions: allow/disallow movement and insertion of items at certain index
Extended the sortingDelegate with two more optional delegate methods:
- (BOOL)GMGridView:(GMGridView *)gridView shouldAllowMovingCell:(GMGridViewCell *)view atIndex:(NSInteger)index;
is called when a move is about to start. If this method returns NO
, the move won't take place.
- (BOOL)GMGridView:(GMGridView *)gridView shouldAllowMovingCell:(GMGridViewCell *)view toIndex:(NSInteger)index;
is called when an item is moved to a new position in the grid. If this method returns NO
, the insertion won't take place.
Thanks @Bringo. I'll review this with the new code base and merge.
Will it be merged, please?
Also wondering if this will be merged soon. Thanks.
This feature is very interesting, when will it be merged?
Still no news on when it'll be merged?
ummmmmmm why not keep a simple bool for allowing dragging of cell and based on that flag add or remove the longtapgesture