Reputation: 3385
I setting up UIDocument to save my files to the device. I mark a file needs to be saved with
[ myDoc updateChangeCount:UIDocumentChangeDone ]
Now it appears that the saving operation only kicks in when one is leaves the app. Now what would happen if I dereference the file when I have the file open, thinking that I have its content saved already, would the autosave kick in before the file is dereferenced.
Thanks Reza
Upvotes: 1
Views: 1379
Reputation: 654
If you're done with a UIDocument, you should close it using UIDocument closeWithCompletionHandler:
Upvotes: 1