updateUserActivityState(_:)
Updates the state of the given user activity.
Declaration
func updateUserActivityState(_ userActivity: NSUserActivity)Parameters
- userActivity:
The user activity to be updated.
Discussion
The default implementation of this method puts the document’s fileURL into the NSUserActivity object’s userInfo dictionary with the userActivityURLKey. UIDocument automatically sets the needsSave property of the NSUserActivity object to true when the fileURL changes.