index = -2147483648
dsencheng opened this issue · 0 comments
dsencheng commented
NSInteger positionToLoad;
GMGridViewCell *cell = [self newItemSubViewForPosition:positionToLoad];
[self addSubview:cell];
===========Whether should change to this?==============
NSInteger positionToLoad = 0;
GMGridViewCell *cell = [self newItemSubViewForPosition:positionToLoad < 0 ? 0 : positionToLoad];
[self addSubview:cell];