1

I have an app that either capture or pick image from gallery, the problem is that the client wants to change the label in imagepicker from 'USE PHOTO' to 'CHOOSE'

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)
}
rmaddy
  • 314,917
  • 42
  • 532
  • 579
JhayCo
  • 11
  • 1
  • 2
  • 6
  • Unrelated but you should not need the `as UIImagePickerControllerDelegate & UINavigationControllerDelegate` cast. Just make sure your class declares that it conforms to those protocols. – rmaddy Apr 24 '19 at 03:21
  • noted on that @rmaddy thanks – JhayCo Apr 24 '19 at 03:27

0 Answers0