SagittariusA
SagittariusA

Reputation: 5427

Swift: how to change default behaviour of buttons "Use Photo", "Cancel", "Shoot", "Retake" of UIImagePickerController

As explained here I would need to modify a little the actions/behaviour of the buttons listed in titled. I would like to avoid to build a new image picker overlay as some posts suggest. I just need to add a call to one of my methods into default actions. Isn't there a simple way to do this?

Upvotes: 0

Views: 928

Answers (1)

Marcos Crispino
Marcos Crispino

Reputation: 8218

You can't.

As explained in the UIImagePickerController class reference:

The UIImagePickerController class manages customizable, system-supplied user interfaces for taking pictures and movies on supported devices, and for choosing saved images and movies for use in your app. An image picker controller manages user interactions and delivers the results of those interactions to a delegate object.

And then:

To perform fully-customized image or movie capture, instead use the AV Foundation framework as described in Media Capture and Access to Camera.

Upvotes: 1

Related Questions