title: Which folder will be cleanup when an iOS app has been upgraded
body: <p>We know that iOS has NSDocumentDirectory, NSCachesDirectory, and NSTemporaryDirectory(),
  so which folder will be cleanup when an iOS app is upgraded to a newer version? the cache folder, or the temporary folder?
  and will the temporary folder be cleanup when the app exits?</p>