I am working with one application where i need to display the date and time the application was closed lastly.It is possible to store and retrieve the date and time the iphone application was opened and closed? I am having one webservice that would store the date and time but i am not having idea about how to retrieve this thing.
Any idea? Thank you.
Use UIApplicationDelegate’s methods:
If you want to store date you probably want to use NSUserDefaults. It is really very straightforward. Check docs.
Here is another link to help: What's the optimum way of storing an NSDate in NSUserDefaults?