UAActivityViewController

Objective-C


@interface UAActivityViewController
    : UIActivityViewController <UIPopoverPresentationControllerDelegate,
                                UIPopoverControllerDelegate>

Swift

class UAActivityViewController : UIActivityViewController, UIPopoverPresentationControllerDelegate, UIPopoverControllerDelegate

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

Activity View Controller Properties

  • Block called after the view has disappeared.

    Declaration

    Objective-C

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

    Swift

    var dismissalBlock: (() -> Void)? { get set }

Activity View Controller Management

  • Returns the desired source rect dimensions for the popover.

    Declaration

    Objective-C

    - (CGRect)sourceRect;

    Swift

    func sourceRect() -> CGRect