Sadly, when my App is updated there is some saved data or left over logic that was already implemented. This can cause some bugs to occur. Is there a way to tell if an App was updated so I can make the user relogin? Any tips or suggestions are appreciated.
Asked
Active
Viewed 124 times
-1
-
Check application version - http://stackoverflow.com/questions/7957794/how-to-get-your-own-app-version-from-xcode – Kampai Oct 13 '14 at 13:43
-
possible duplicate of http://stackoverflow.com/questions/3015796/how-to-programmatically-display-version-build-number-of-target-in-ios-app – nburk Oct 13 '14 at 13:43
-
store app version in NUserDefault for first time afterwords compare with stored value and save again – Paresh Navadiya Oct 13 '14 at 13:44
1 Answers
4
You can save the installed version in the NSUserDefaults
. They will persist during app updates, so whenever your app launches you check for the saved version, compare it with the current version and do your migration if necessary. At the end, save the new version to the same key.

Sebastian Wramba
- 10,087
- 8
- 41
- 58