Autosave issues. What's the best solution?

The app I am writing is UIDocument based.


A user is halfway through editing my iCloud document. A text field is being typed into. The on-screen keyboard is displayed.

UIDocument automatically undertakes a save operation. The saved document goes to iCloud. iCloud notifies the app there is an updated version.

The app then updates the UI. Causing the text field to lose first-responder. The text field is emptied, and the keyboard vanishes.

What's a safe and simple way to avoid this?

C.