When your user clicks on your button, you should check some value in [NSUserDefaults standardDefatults] , if the check is zero, you should display your warning, and then save some value, so the next time it checks, it will make a difference and you donโt have anything are doing.
Like this:
NSString * val = [[NSUserDefaults standardUserDefaults] objectForKey:@"kFirstTime"]; if (!val) {
source share