将图像选择器标签从“使用照片”修改为“选择”

时间:2019-04-24 03:19:47

标签: ios swift camera uiimagepickercontroller

我有一个可以从图库中捕获图像或从画廊中拾取图像的应用程序,问题是客户希望将图像选择器中的标签从“使用照片”更改为“选择”

if UIImagePickerController.isSourceTypeAvailable(.camera) {
    let showCamera = UIImagePickerController()
    showCamera.delegate = self as UIImagePickerControllerDelegate & UINavigationControllerDelegate
    showCamera.sourceType = .camera;
    showCamera.allowsEditing = false
    self.present(showCamera, animated: true, completion: nil)
}

0 个答案:

没有答案