【问题标题】:UICollectionView - UICollectionViewDelegate - how do I implement the equivalent to canEditRowAtIndexPath?UICollectionView - UICollectionViewDelegate - 如何实现与 canEditRowAtIndexPath 等效?
【发布时间】: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


    【解决方案1】:

    这对我来说看起来不错,除了使用action == @selector(willMoveToIndexPath)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多