Basically that, how can I close the application since I can not find almost any information about it and I would like to add that function to a button in the navigation controller so that the user leaves the application whenever they want, I have seen that they talk about the exit ( ) but they do not recommend it because this is understood as a crash.