UAActivityViewController

@interface UAActivityViewController
    : UIActivityViewController <UIPopoverPresentationControllerDelegate,
                                UIPopoverControllerDelegate>

Wrapper around UIActivityViewController that takes an optional block that will fire after the view disappears.

  • Block called after the view has disappeared.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) void (^)(void) dismissalBlock;

    Swift

    var dismissalBlock: (() -> Void)? { get set }
  • Returns the desired source rect dimensions for the popover.

    Declaration

    Objective-C

    - (CGRect)sourceRect;

    Swift

    func sourceRect() -> Any!