I have a problem.
I want to translate the cancel button in a UIImagePickerController
.
I tried different solutions but none of them worked.
Please find my actual code that works for changing title text but not for cancel button :
func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool) {
imagePicker.navigationBar.topItem?.title = localizedString("ES_CUSTOMERS_EDIT_PHOTOS_TITLE")
imagePicker.navigationBar.backItem?.title = localizedString("ES_CANCEL_BUTTON")
}