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

Selected Item is out of bounds. #15

Merged
merged 1 commit into from
Jul 22, 2015
Merged

Selected Item is out of bounds. #15

merged 1 commit into from
Jul 22, 2015

Conversation

Ferannor
Copy link
Contributor

When data changes and the picker is reload, selected item index can be out of bounds.

To prevent that, I check in reloadData method the number of items in the picker view if it's bigger than selected item index. If this index is out, the picker don't scroll.

When data changes and the picker is reload, selected item index can be out of bounds.

To prevent that, I check in reloadData method the number of items in the picker view if it's bigger than selected item index. If this index is out, the picker don't scroll.
@akkyie akkyie self-assigned this Jul 22, 2015
akkyie added a commit that referenced this pull request Jul 22, 2015
Selected Item is out of bounds. (Thanks! @Ferannor)
@akkyie akkyie merged commit 17752bf into akkyie:master Jul 22, 2015
@akkyie
Copy link
Owner

akkyie commented Jul 22, 2015

Sorry for my late response and it looks good!
Thank you for your contribution.

@Ferannor
Copy link
Contributor Author

No problem!
You're welcome!

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

Successfully merging this pull request may close these issues.

2 participants