开发者

Determine when user purchased iPhone application [closed]

开发者 https://www.devze.com 2023-03-18 06:59 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 9 years ago.

Improve this question

Is 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"];
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号