gmoledina / GMGridView

A performant Grid-View for iOS (iPhone/iPad) that allows sorting of views with gestures (the user can move the items with his finger to sort them) and pinching/rotating/panning gestures allow the user to play with the view and toggle from the cellview to a fullsize display.
MIT License
2.3k stars 512 forks source link

index = -2147483648 #205

Open dsencheng opened 10 years ago

dsencheng commented 10 years ago

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];