cloudIdentifiers(forLocalIdentifiers:)
Retrieves the equivalent iCloud identifiers for the list of local identifiers.
Declaration
func cloudIdentifiers(forLocalIdentifiers localIdentifiers: [String]) -> [PHCloudIdentifier]Parameters
- localIdentifiers:
The local identifiers for which to retrieve iCloud identifier equivalents.
Return Value
The array of corresponding iCloud identifiers.
Discussion
Retrieving iCloud identifiers can be an expensive operation, so you should perform this lookup sparingly. Instead, work with local identifiers and retrieve their iCloud identifier equivalents only once: either after loading from or before saving to persistent storage.