Changes

Jump to: navigation, search

Using iCloud Storage in an iOS 8 Application

4 bytes added, 16:39, 14 April 2015
no edit summary
<pre>
let query: NSMetadataQuery = notification.object as ! NSMetadataQuery
query.disableUpdates()
if query.resultCount == 1 {
let resultURL =
results[0].valueForAttribute(NSMetadataItemURLKey) as ! NSURL
document = MyDocument(fileURL: resultURL)
func metadataQueryDidFinishGathering(notification: NSNotification) -> Void
{
let query: NSMetadataQuery = notification.object as ! NSMetadataQuery
query.disableUpdates()
if query.resultCount == 1 {
let resultURL =
results[0].valueForAttribute(NSMetadataItemURLKey) as ! NSURL
document = MyDocument(fileURL: resultURL)

Navigation menu