title: How to delete an item from UICollectionView with indexpath.row
body: <p>I have a collection view,and I tried to delete a cell from collection view on didSelect method.I succeeded in that using the following method   </p>
  
  <pre><code>  [colleVIew deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];
  </code></pre>
  
  <p>But now I need to delete the item on button click from CollectionView Cell.Here I get only the indexpath.row.
  From this I am not able to delete the Item.
  I tried like this.</p>
  
  <pre><code>-(void)remove:(int)i {
  
      NSLog(@"index path%d",i);
     [array removeObjectAtIndex:i];
  
     NSIndexPath *indexPath =[NSIndexPath indexPathForRow:i inSection:0];
     [colleVIew deleteItemsAtIndexPaths:[NSArray arrayWithObject:indexPath]];
      [colleVIew reloadData];
    }
  </code></pre>
  
  <p>But it needs to reload the CollectionView.So the animation of cell arrangement after deletion is not there.
  Please suggest an idea..thanks in advance</p>