
AnyDo アプリのように、スワイプでテーブル ビュー セルの削除を実装しようとしています。助けて?
私のコード:
ジェスチャ認識機能を使用しています
      - (UISwipeGestureRecognizer *)swipeRightRecognizer 
      { 
        if (!_swipeRightRecognizer)  
           {
            _swipeRightRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipeFrom:)];
            _swipeRightRecognizer.direction = UISwipeGestureRecognizerDirectionRight; 
       }  
        return _swipeRightRecognizer; 
       }
ジェスチャをセルに追加:
       [cell.contentView addGestureRecognizer:self.leftGestureRecognizer];
スワイプ処理。
       - (void)handleSwipeFrom:(UISwipeGestureRecognizer *)recognizer indexPath: (NSIndexPath *)index
       { 
       if (recognizer.direction == UISwipeGestureRecognizerDirectionLeft)
       { 
        //Table View deletion code.  + Line to be drawn on cell, move that cell to the bottom of the table with animaiton.
       } 
}