end app

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?

Accepted Answer

I think that is a quick path to rejection during review.


Find another way to handle the UI flow without jettisoning. See the App Review Guidelines for why and the iOS Human Interface Guidelines for help on how to rework your particular UI.

end app
 
 
Q