How to store user activities log in iOS app

Hi, I am trying to store user activities log in text file and once the session is over in another session the log will override the file automatically. Please any one help me to implement without using third party analytics library. Only using Apple class. Thank you.

What is the problem ?

  • generating the log ?
  • saving on file ?
  • overriding ?

In ApplicationWillTerminate, implement the file saving code. If you use the same filename, it will be automatically overwritten.

How to store user activities log in iOS app
 
 
Q