Contents

delegate

The image picker’s delegate object.

Declaration

weak var delegate: (any UIImagePickerControllerDelegate & UINavigationControllerDelegate)? { get set }

Discussion

The delegate receives notifications when the user picks an image or movie, or exits the picker interface. The delegate also decides when to dismiss the picker interface, so you must provide a delegate to use a picker. If this property is nil, the picker is dismissed immediately if you try to show it.

For information about the methods you can implement for your delegate object, see UIImagePickerControllerDelegate.

See Also

Responding to interactions with the picker