Instance Method

restoreUserActivityState:

Restores the state needed to continue the given user activity.

Declaration

- (void)restoreUserActivityState:(NSUserActivity *)activity;

Parameters

activity

The user activity to be continued.

Discussion

Subclasses override this method to restore the responder’s state with the given user activity. The system calls it on any objects passed to the restoration handler given to application:continueUserActivity:restorationHandler:. The override should use the state data contained in the given user activity’s userInfo dictionary to restore the object.

You may also call this method directly if the app delegate chooses not to use the restoration handler.

See Also

Supporting User Activities

userActivity

An object encapsulating a user activity supported by this responder.

- updateUserActivityState:

Updates the state of the given user activity.