I would like to create a time counter in my app that shows the user how many minutes the app has been running the current session and total. How do I create such time counter and how do I save the value to the phone? I’m new to app developement.
Share
You can use the
NSDateandNSDateFormatterclasses for this.Here’s an example:
Declare an NSDate instance in your .m file: