TheMindStudios / WheelPicker

Customizable wheel picker view implementation for iOS.
MIT License
84 stars 22 forks source link

Crashes when trying to reloadData if number of items is 0 #7

Open ihounokyaku opened 6 years ago

ihounokyaku commented 6 years ago

Causes a crash with the following error when the number of items to display in the WheelPicker is 0 and the reloadData method is called:

"Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'attempt to scroll to invalid index path: <NSIndexPath: 0x60400022f920> {length = 2, path = 0 - 0}'"

ParhamHatan commented 4 years ago

Use my fork: WheelPicker