Inherits from UIViewController
Conforms to UICollectionViewDataSource
UICollectionViewDelegate
Declared in INKActivityViewController.h

Overview

A re-implementation of UIActivityViewController, designed to allow for UIActivity objects with custom full-color images.

This is not a drop-in replacement for UIActivityViewController, as it requires the use of a INKActivityPresenter helper object to coordinate getting the animation just right.

Tasks

Properties

contentView

@property (strong, nonatomic) UIView *contentView
Discussion

The actual content of the action sheet

Declared In

INKActivityViewController.h

delegate

@property (strong, nonatomic) id<INKActivityViewControllerDefaultsDelegate> delegate
Discussion

A delegate responsible for registering defaults

Declared In

INKActivityViewController.h

isDefaultSelector

@property (assign, nonatomic) BOOL isDefaultSelector
Discussion

If true, tapping an app will not perform its action, but only set the default. It will also hide the ‘set default’ toggle bar.

Declared In

INKActivityViewController.h

numberOfApplications

@property (readonly) NSInteger numberOfApplications
Discussion

The number of applications on the current device capable of handling the action

Declared In

INKActivityViewController.h

presenter

@property (strong, nonatomic) INKActivityPresenter *presenter
Discussion

A presenter object responsible for displaying and hiding the view controller

Declared In

INKActivityViewController.h

Instance Methods

initWithActivityItems:applicationActivities:

- (instancetype)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities
Discussion

The constructor has the same signature as that of UIActivityViewController.

Warning: Unlike UIActivityViewController, only the UIActivity objects specified in the applicationActivities array will be displayed; it will not show any of the default activities.

Parameters

activityItems

An array of items to share

applicationActivities

An array of UIActivity objects to display.

Return Value

An initialized INKActivityPresenter object.

Declared In

INKActivityViewController.h