Instance Method

init

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

Declaration

- (instancetype)init;

Return Value

An NSUserActivity object.

Discussion

This method retrieves the first string of the NSUserActivityTypes key declared in the app’s Info.plist file.

See Also

Creating a User Activity Object

- initWithActivityType:

Initializes and returns the object using the specified type.