title: Determine how long iOS App has been closed or has been in the background
body: <p>As the title says: How do I determine how long my iOS App has been closed or has been in the background? I need to know this since I want to call a method if the app has been closed or has been in the background for more than 3 hours. </p>