Captures a still image using the camera.
- iOS 3.1+
- Mac Catalyst 13.0+
Use this method in conjunction with a custom overlay view to initiate the programmatic capture of a still image. This supports taking more than one picture without leaving the interface, but requires that you hide the default image picker controls.
Calling this method while an image is being captured has no effect. You must wait until the associated delegate object receives an
image message before you can capture another picture.
Calling this method when the source type of the image picker is set to a value other than
UIImage results in the throwing of an