Fixed issue #44 #58

Merged
merged 1 commit into from Mar 17, 2012
Jump to file
+1 −1
Split
@@ -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;