DownPicker icon indicating copy to clipboard operation
DownPicker copied to clipboard

Could not customise picker's toolbar.

Open morph85 opened this issue 9 years ago • 3 comments

Please expose picker's toolbar for easier customisation.

morph85 avatar Nov 24 '15 15:11 morph85

Could you elaborate? What do you mean with "toolbar"?

Darkseal avatar Dec 14 '15 18:12 Darkseal

Please expose UIPickerView so that developer could customise the view easily.

Customisation may include:

  • Picker's cancel and done button
  • Picker's top bar background color
  • Picker view itself (using delegate method: - (UIView *)pickerView:(UIPickerView *)aPickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view) ... )

I notice that picker view is only created in -(IBAction)showPicker function. Probably you could create two delegate/protocol method: - (void)downPicker:(DownPicker *)downPicker willShowWithToolbar:(UIToolbar *)toolbar after pickerView is being instantialized and - (void)downPicker:(DownPicker *)downPicker didShowWithToolbar:(UIToolbar *)toolbar inside showPicker function.

morph85 avatar Dec 15 '15 03:12 morph85

Having the same issue. I'm trying to customize the color of the toolbar that goes with the UIPickerView but it isn't accessible.

keslert avatar Jan 02 '16 01:01 keslert