akkyie / AKPickerView

A simple yet customizable horizontal picker view.
MIT License
893 stars 106 forks source link

Fix issue when the selectedItem is greater than the new data source #69

Open xmkevin opened 8 years ago

xmkevin commented 8 years ago

Supports I have an datasource with count is 10, and my selectedItem is 8. When I assign a new data source with count 5, it will crash. This PR fix this issue

aksh1t commented 7 years ago

Can confirm the crash. Had to do a similar fix for the issue.