forked from TimCinel/ActionSheetPicker
-
-
Notifications
You must be signed in to change notification settings - Fork 740
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
Change Color of Cancel and Done Buttons #326
Comments
I solved it by using following code
|
What about the title? How to change it's color? |
Got it, you can customize anything with this: let picker = ActionSheetMultipleStringPicker(title: "Title", rows: [
myRows,
], initialSelection: [0], doneBlock: {
picker, indexes, values in
return
}, cancel: { ActionMultipleStringCancelBlock in return }, origin: self)
picker?.titleTextAttributes = [NSForegroundColorAttributeName : UIColor.white]//this is actually the title of toolbar
picker?.toolbarButtonsColor = UIColor.blue
picker?.pickerBackgroundColor = UIColor.gray
picker?.toolbarBackgroundColor = UIColor.white
picker?.setTextColor(UIColor.whiter)//this is the color of the picker view items
picker?.show() |
picker?.titleTextAttributes = [NSForegroundColorAttributeName : UIColor.white] doesn't seem to change the title color |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Am using swift 3:
ActionSheetStringPicker.show(withTitle: "Select Status", rows: pickerData, initialSelection: self.selectedStatusRow, doneBlock: {
picker, value, index in
self.selectedStatusRow = value
return
}, cancel: { ActionStringCancelBlock in return }, origin: sender)
I want to change the color of done and cancel, to my globaltint color.How can I do that in swift 3? Thank You for this library.
I created the issue on http://stackoverflow.com/questions/41925687/actionsheetstringpicker-change-button-color as well
The text was updated successfully, but these errors were encountered: