Open dmitryyashkin-otg opened 7 years ago
- (void)reloadData { [self invalidateIntrinsicContentSize]; [self.collectionView.collectionViewLayout invalidateLayout]; [self.collectionView reloadData]; if ([self.dataSource numberOfItemsInPickerView:self]) { [self selectItem:self.selectedItem animated:NO notifySelection:NO]; } }
if statement should be changed toif ([self.dataSource numberOfItemsInPickerView:self] > self.selectedItem ) {
if
if ([self.dataSource numberOfItemsInPickerView:self] > self.selectedItem ) {
if
statement should be changed toif ([self.dataSource numberOfItemsInPickerView:self] > self.selectedItem ) {