似乎这与这种方法有关,尽管我很难区分如何区分 Selector 被称为:
-(BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender
{
if ( action.type? name? == "willMoveToIndexPath" && sender == cellToNotMove?? ) return NO;
return YES;
}
似乎这样的事情可能会奏效,对干净的实施有什么建议吗?
谢谢