fix crash when looped slider with item count zero
This commit is contained in:
@@ -121,7 +121,7 @@ - (void)blendView:(UICollectionView *)view forPropName:(NSString *)name propValu
|
||||
}
|
||||
|
||||
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
|
||||
if (self.loop) {
|
||||
if (self.loop && self.itemCount > 0) {
|
||||
return self.itemCount + 2;
|
||||
} else {
|
||||
return self.itemCount;
|
||||
|
Reference in New Issue
Block a user