Я искал какой-то пример для локализации по умолчанию Отмены и Готова кнопка, Вот пример код для настройки по умолчанию Отмены и кнопка Готово Панели инструментов ActionSheetPicker-3.0
@IBAction func showCompanyTypes(_ sender: Any) {
let cancelButton:UIButton = UIButton(type: .custom)
cancelButton.setTitle("Cancel", for: .normal)
cancelButton.setTitleColor(UIColor.black, for: .normal)
cancelButton.frame = CGRect(x: 0, y: 0, width: 55, height: 32)
let doneButton:UIButton = UIButton(type: .custom)
doneButton.setTitle("Done", for: .normal)
doneButton.setTitleColor(UIColor.black, for: .normal)
doneButton.frame = CGRect(x: 0, y: 0, width: 55, height: 32)
let acp = ActionSheetStringPicker(title: "Company Type", rows: ["Private Sector", "Government", "Semi Government", "Free Zone"], initialSelection: 0, doneBlock: {
picker, values, indexes in
print("values = \(values)")
print("indexes = \(indexes)")
print("picker = \(picker)")
return
}, cancel: { ActionMultipleStringCancelBlock in return }, origin: sender)
acp?.pickerTextAttributes = [NSFontAttributeName: UIFont.systemFont(ofSize: 15.0)]
acp?.setTextColor(UIColor.black)
acp?.pickerBackgroundColor = UIColor.white
acp?.toolbarBackgroundColor = UIColor.white
acp?.toolbarButtonsColor = UIColor.black
acp?.setCancelButton(UIBarButtonItem(customView: cancelButton))
acp?.setDoneButton(UIBarButtonItem(customView: doneButton))
acp?.show()
}
вы должны перейдите в свою основную библиотеку, иначе нет возможности для этого –