Closed guillotemanija closed 7 years ago
Hi,
I'm trying and failing to customize the "cancel" and "done" bar button items's text.
I have tried doing this but it does not work.
locationPicker.barButtonItems?.doneButtonItem.title = "newDone"
I also tried this with no luck:
let doneButton = locationPicker.barButtonItems?.doneButtonItem doneButton?.title = "newDone" let cancelButton = locationPicker.barButtonItems?.cancelButtonItem cancelButton?.title = "newCancel" locationPicker.addBarButtons(doneButtonItem: doneButton, cancelButtonItem: cancelButton, doneButtonOrientation: .right)
Could you provide an example on how to do it the right way? Thank you!
You need to create new instances of UIBarButtonItem, and pass them to addBarButtons
addBarButtons
Hi,
I'm trying and failing to customize the "cancel" and "done" bar button items's text.
I have tried doing this but it does not work.
I also tried this with no luck:
Could you provide an example on how to do it the right way? Thank you!