exit(0); and abort();
Both exit and abort are processing functions that terminate the program execution and exit, where exit is a normal exit, abort is an abnormal exit, an error message will be output when exiting, and then exit is called to exit.
method:
Add the property Application does not run in background = YES to the plist and call exit(0)
It’s okay to follow Android to quit, the user experience is poor, and the people who eat melon don’t understand it at all