Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS]只配置一列数据时,onPickerConfirm/onPickerCancel/onPickerSelect第二个参数index返回空数组 #120

Open
wfpaopao opened this issue Feb 9, 2017 · 2 comments
Labels

Comments

@wfpaopao
Copy link

wfpaopao commented Feb 9, 2017

如题

@wfpaopao wfpaopao changed the title 只配置一列数据时,onPickerConfirm/onPickerCancel/onPickerSelect第二个参数index返回空数据 只配置一列数据时,onPickerConfirm/onPickerCancel/onPickerSelect第二个参数index返回空数组 Feb 9, 2017
@libercata
Copy link

+1
I got 1 column data,onPickerConfirm (pickedIndex == null)
won't happen in Android.

@libercata
Copy link

libercata commented Feb 10, 2017

`getStyle

self.dataDry=[self.pickerDic objectForKey:@"pickerData"];

id firstobject=[self.dataDry firstObject];

// It help
_seleNum = 1;

if ([firstobject isKindOfClass:[NSArray class]]) {

`

modify in BzwPicker.m simply add a default value(it means 1) for _seleNum.

Did a few test, it works for me.
@wfpaopao

@shexiaoheng shexiaoheng changed the title 只配置一列数据时,onPickerConfirm/onPickerCancel/onPickerSelect第二个参数index返回空数组 [iOS]只配置一列数据时,onPickerConfirm/onPickerCancel/onPickerSelect第二个参数index返回空数组 Feb 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants