Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/gmoledina/GMGridView
Browse files Browse the repository at this point in the history
  • Loading branch information
gmoledina committed Mar 26, 2012
2 parents ee9ad9e + 215900f commit f1d8143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GMGridView/GMGridView.m
Expand Up @@ -1589,7 +1589,7 @@ - (void)insertObjectAtIndex:(NSInteger)index withAnimation:(GMGridViewItemAnimat
{
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 f1d8143

Please sign in to comment.