I made an alert that randomly appears to remind the user to rate the app and then set a key BOOL to YES so that it doesn’t pop up when a user hits rate. I need to initially set this to NO. Is there a function or variable that knows if its the first time a user is opening an app?
Share
If you’re using
NSUserDefaultsto store thisBOOL, then when you ask the defaults forboolForKey:, it will automatically returnNOif theBOOLdoes not exist in the defaults.