Instance Method

application:userDidAcceptCloudKitShareWithMetadata:

Tells the delegate that the user accepted a CloudKit sharing invitation associated with your app.

Declaration

- (void)application:(NSApplication *)application userDidAcceptCloudKitShareWithMetadata:(CKShareMetadata *)metadata;

Parameters

application

The shared app object.

metadata

The metadata associated with the invitation. Use the URL of the metadata's CKShare object and the containerIdentifier property to schedule a CKAcceptSharesOperation object.

Discussion

Use the provided metadata to begin sharing the specified content with the current user. For more information, see CloudKit.