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

Could not customise picker's toolbar. #31

Open
morph85 opened this issue Nov 24, 2015 · 3 comments
Open

Could not customise picker's toolbar. #31

morph85 opened this issue Nov 24, 2015 · 3 comments

Comments

@morph85
Copy link

morph85 commented Nov 24, 2015

Please expose picker's toolbar for easier customisation.

@Darkseal
Copy link
Owner

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

@morph85
Copy link
Author

morph85 commented Dec 15, 2015

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.

@keslert
Copy link

keslert commented Jan 2, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants