Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

reloadData, selectedItem is not in range #87

Open
dmitryyashkin-otg opened this issue May 5, 2017 · 0 comments
Open

reloadData, selectedItem is not in range #87

dmitryyashkin-otg opened this issue May 5, 2017 · 0 comments

Comments

@dmitryyashkin-otg
Copy link

- (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 to if ([self.dataSource numberOfItemsInPickerView:self] > self.selectedItem ) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant