skywinder / ActionSheetPicker-3.0

Quickly reproduce the dropdown UIPickerView / ActionSheet functionality on iOS.
http://skywinder.github.io/ActionSheetPicker-3.0
BSD 3-Clause "New" or "Revised" License
3.4k stars 740 forks source link

Example causes EXC_BAD_ACCESS (fix) #336

Closed vixez closed 4 years ago

vixez commented 7 years ago

Hello,

In the doneBlock of the Objective-C example there will be the following line: NSLog(@"Picker: %@, Index: %@, value: %@", picker, selectedIndex, selectedValue);

This wil cause EXC_BAD_ACCESS to be thrown.

To fix, just replace "Index: %@" by "Index: %d" NSLog(@"Picker: %@, Index: %d, value: %@", picker, selectedIndex, selectedValue);

This is something easy, but you might bang your head on why it's crashing when just trying to run the example as described on the main page.

skywinder commented 4 years ago

Thanks, I will check it!

skywinder commented 4 years ago

@vixez yes, it's time to close, thanks :)

skywinder commented 4 years ago

fixed in latest commit