Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed issue #44 insertObjectAtIndex bug.

  • Loading branch information...
commit 793972ace38b64b63aaab6e793fe19efd493ce3a 1 parent e4dff0a
PongPong authored March 16, 2012

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  GMGridView/API/GMGridView.m
2  GMGridView/API/GMGridView.m
@@ -1424,7 +1424,7 @@ - (void)insertObjectAtIndex:(NSInteger)index
1424 1424
     {        
1425 1425
         cell = [self newItemSubViewForPosition:index];
1426 1426
         
1427  
-        for (int i = index; i < _numberTotalItems; i++)
  1427
+        for (int i = _numberToTotalItems - 1; i >= index; i--)
1428 1428
         {
1429 1429
             UIView *oldView = [self cellForItemAtIndex:i];
1430 1430
             oldView.tag = oldView.tag + 1;

0 notes on commit 793972a

Please sign in to comment.
Something went wrong with that request. Please try again.