Determine when user purchased iPhone application [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this questionIs it possi开发者_运维技巧ble to determine when a user first purchased your application? (Not just when they last downloaded it, hopefully device independent)
You could store the first run into the NSUserDefaults, the only problem with this approach is if they delete and reinstall the App you would lose the data:
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
[defaults setObject:[NSDate date] forKey:@"FirstRun"];
精彩评论