Skip to content

Commit

Permalink
Fixed issue gmoledina#44 insertObjectAtIndex bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
PongPong committed Mar 16, 2012
1 parent e4dff0a commit 793972a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GMGridView/API/GMGridView.m
Expand Up @@ -1424,7 +1424,7 @@ - (void)insertObjectAtIndex:(NSInteger)index
{
cell = [self newItemSubViewForPosition:index];

for (int i = index; i < _numberTotalItems; i++)
for (int i = _numberToTotalItems - 1; i >= index; i--)
{
UIView *oldView = [self cellForItemAtIndex:i];
oldView.tag = oldView.tag + 1;
Expand Down

0 comments on commit 793972a

Please sign in to comment.