CooperRS / RMPickerViewController

This is an iOS control for selecting something using UIPickerView in an UIAlertController like manner
MIT License
381 stars 51 forks source link

Use severals pickers into the viewController #24

Closed sebastienL closed 9 years ago

sebastienL commented 9 years ago

Hello,

I use one picker but I want to change the data when I clicked on specific buttons. Then, I only have an instance of the RMPickerViewController created.

Before to call "[_pickerVC show];" I do "_isMoreAction = YES; [_pickerVC show];" and in the delegate methods I check "_isMoreAction" to display the picker with the right data.

On iOS8 it's working but on iOS7 the picker always keeps the data on its first display. Is there something specific to add for iOS 7? Did you already have this kind of issue?

Thanks,

CooperRS commented 9 years ago

You may need to call - (void)reloadAllComponents on the RMPickerViewControllers picker before or after you called [_pickerVC show].

sebastienL commented 9 years ago

Thanks, it works. :)