roberthovhannisyan / PhoneGap-Plugin-ListPicker

ListPicker Plugin for Cordova/PhoneGap (iOS and Android)
MIT License
35 stars 40 forks source link

Crash on iOS #12

Open zabojad opened 8 years ago

zabojad commented 8 years ago

Hi !

The ListPicker crashes my app on iOS 9.2.1 right at invocation of the window.plugins.listpicker.showPicker method with the following error:

'NSInvalidArgumentException', reason: '-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0x15dae700'
*** First throw call stack:
(0x259ee2eb 0x251badff 0x259f3ab5 0x259f170f 0x25920c88 0xa549b 0xa5f53 0xbd433 0xbcd2f 0x2620a567 0x259b1257 0x259b0e47 0x259af1af 0x25901bb9 0x259019ad 0x26b7baf9 0x29bedfb5 0x9d5c3 0x255b4873)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Any idea about what's happening?

Thanks !

zabojad commented 8 years ago

Some more info: The crash happens only if the items values are integers. If I convert them to strings, it works fine. This happens only on iOS (the Android version accepts values as integers...).

Ross-Rawlins commented 7 years ago

Its telling you. you are sending a int when its expecting a string();