Apple doesn't want you to quit the app because it seems like a crash. That's why they did -[UIApplication terminate]
private and will reject your application if you use it. They do not seem to reject applications that use exit
, and I have seen applications lose their temper, but I agree with Apple that this is not very good user interface behavior in iOS, itβs really strange if you drop it on Home screen without pressing the home button. Therefore, I recommend that you simply show the screen with a message in the form of the line "You cannot use the application without accepting EULA. Either accept EULA, or click the" Home "button.
source share