1

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

CodeBender
  • 35,668
  • 12
  • 125
  • 132
reza23
  • 3,079
  • 2
  • 27
  • 42

1 Answers1

1

If you're done with a UIDocument, you should close it using UIDocument closeWithCompletionHandler:

Justin Driscoll
  • 654
  • 4
  • 10