Instance Property

shouldShowCancelConfirmation

A Boolean value that determines whether Photos should prompt the user when canceling the editing session.

Required.

Declaration

@property(readonly, nonatomic) BOOL shouldShowCancelConfirmation;

Discussion

Implement a getter method for this property to customize the Photos app’s behavior when the user chooses to cancel content editing.

If you return NO (the default), Photos immediately terminates your extension when the user cancels editing. Use this option when your extension’s state can be easily recreated—that is, if the user loses no significant effort by canceling editing. For example, this option is appropriate for extensions that offer a simple choice between several preconfigured image filters.

If you return YES, Photos shows an alert to confirm the user’s choice to cancel. Use this option when the user has invested significant effort in your extension workflow that would be lost when canceling. This option is appropriate if the user creates new content during the editing process (for example, in an extension that lets a user “paint” on an image).

See Also

Canceling an Edit

- cancelContentEditing

Tells your extension to cancel editing.

Required.