if (![NSFileVersion removeOtherVersionsOfItemAtURL: _
myCloudDocument.fileURL error:&error]) { ④
NSLog(@”移除其它的文档: %@”, [error localizedFailureReason]);
return;
}
_myCloudDocument.contents = _txtContent.text; ⑤
[_myCloudDocument updateChangeCount:UIDocumentChangeDone]; ⑥
}
[[NSNotificationCenter defaultCenter] removeObserver:self
name:UIDocumentStateChangedNotification object:nil]; ⑦
//从文档协调者中解除 CloudDocument 对象