Objective C: Track number of app uses
I'm trying to implement a UIAlertView to ask the user to rate the app, but I only want it to appear after x amount of uses. Is there a 开发者_Python百科way to do that?
you could use this open-source library: http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/ (link of github project: https://github.com/arashpayan/appirater/ )
Even the UIAlertView is provided for you ;)
But to answer your question: you can increase a value in NSUserDefaults each time the user starts the application.
Hope this helps, Moszi
精彩评论