You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and in updateRegionCountry I update the EZFormRadioField content with a new array passed with setChoicesFromArray.
Everything work but when I open the picker I have the new values but the number of items shown are limited to previous array count.
I mean if first array assigned with setChoicesFromArray had 20 elements, and the new array has 30 elements, the Picker shows the new elements but only the first 20.
Please note that both choices and orderedKeys in EZFormRadioField have the right number of elements after the update, but the picker still shows only 20 elements
The text was updated successfully, but these errors were encountered:
Hi
I found a fix, calling setChoicesFromKeys before the Picker allocation and just after it
[stateField setChoicesFromKeys:[state valueForKey:@"value"] values:[state valueForKey:@"label"]];
stateField.inputView = [[UIPickerView alloc] initWithFrame:CGRectZero];
[stateField setChoicesFromKeys:[state valueForKey:@"value"] values:[state valueForKey:@"label"]];
Hello
I'm trying to implement a EZFormRadioField with UIPickerView with setChoicesFromArray called dinalically based on other field value.
I check the values changing in
{
if ([formField.key isEqualToString:@"country"]) {
[self updateRegionCountry];
}
}
and in updateRegionCountry I update the EZFormRadioField content with a new array passed with setChoicesFromArray.
Everything work but when I open the picker I have the new values but the number of items shown are limited to previous array count.
I mean if first array assigned with setChoicesFromArray had 20 elements, and the new array has 30 elements, the Picker shows the new elements but only the first 20.
Please note that both choices and orderedKeys in EZFormRadioField have the right number of elements after the update, but the picker still shows only 20 elements
The text was updated successfully, but these errors were encountered: