I noticed that UIDocument's methods to let the app know of a change, such as presentedItemDidChange
, only get called if the app is running in the foreground.
What I'm wondering is, if the user was to switch apps or send my app to the background, how can I know if the UIDocument has changed since the user last saw it when they bring the app to the foreground again?
Or, should I be updating everything every time the app returns to the foreground just in case the UIDocument has been updated?