【发布时间】:2012-12-17 16:58:40
【问题描述】:
似乎与此方法有关,尽管我很难区分如何区分 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;
}
似乎这样的事情可能会奏效,对干净的实施有什么建议吗?
谢谢
【问题讨论】:
标签: ios uicollectionview