I need to code to shut down my app when the user doesn't allow access to their calendar data. What code should I use that won't cause problems like a memory leak.
I found "exit(0)" and "NSThread.mainThread().exit" from StackOverflow. What do you think about those?