ios - How to track how many times an iPhone app is opened? -


I am creating an iPhone app and want to track how many times it has been opened so that I am a user After working, after opening X number of X, I have thought about storing a variable in the core data, which is opened every time, but it looks like a garbage because it is a singleton data, and not Many examples of an object. What is the best way to store such data and to use it without slowing down the time of app opening?

You can store it user default here:

  - (BOOL) Application: (UIApplication *) Application given FinishLaunchingWithOptions: (NSDictionary *) launchOptions {[self countOpen]; } - (zero) countOpen {int _coutn = 0; _count = [[[NSUserDefaults Standard User Default] ObjectForrechy: @ "Appointment"] Intavele]; [[NSUserDefaults Standard User Default] Set Object: [NSString stringFormat: @ "% d", _ count + 1]: @ "AppCount"]; }  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -