Upon the first launch of my app, i have used NSUser defaults to show an intro of my app.
However, once an update has been issued and installed, i want to show a whats new page on the first launch after update. My issue is that NS user defaults does not reset and everyone will have different launch counts.
I could use this code to work out the software version...
if ([[NSString stringWithFormat:@"Version %@",[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]]isEqualToString:@"Version 1.0"])
{
// first launch code here
}
...but how could i then only get the whats new page to appear on the first launch after update rather than every launch?
If any code is required, it would need to be in Objective C as I have not yet begun developing in swift. Thanks in advance for any assistance.
Use
NSUserDefaults
to store a boolean value like"hasShowedUpatePopupForVersionXX"
. Don't forget to set it toYES
in case of new installs