NativePickerDialog selectedIndex not working? by multi set.
egu20 opened this issue · comments
by iOS5.
selectedIndex working!
var _pickerDialog:NativePickerDialog = new NativePickerDialog();
var fruits:Vector.<String> = new Vector.<String>();
fruits[0] = "Apple";
fruits[1] = "Orange";
fruits[2] = "Strawberry";
var datas:Vector.<PickerList> = new Vector.<PickerList>();
datas[0] = new PickerList(fruits, 1);//selectedIndex = 1
_pickerDialog.dataProvider = datas;
_pickerDialog.show();
selectedIndex not working...
var pickerDialog:NativePickerDialog = new NativePickerDialog();
var fruits:Vector.<String> = new Vector.<String>();
fruits[0] = "Apple";
fruits[1] = "Orange";
fruits[2] = "Strawberry";
var datas:Vector.<PickerList> = new Vector.<PickerList>();
datas[0] = new PickerList(fruits, 1);//selectedIndex = 1
datas[1] = new PickerList(fruits, 0);//**[ADDED 1 LINE]**_
_pickerDialog.dataProvider = datas;
_pickerDialog.show();