Instance Method

initWithActivityType:

Initializes and returns the object using the specified type.

Declaration

- (instancetype)initWithActivityType:(NSString *)activityType;

Parameters

activityType

The type of the activity. The value is a developer-defined string in reverse-DNS format by convention, for example, com.myCompany.myEditor.editing.

Return Value

An NSUserActivity object.

See Also

Creating a User Activity Object

- init

Initializes and returns the object using the first activity type declared in the app’s information property list file.

Deprecated