Exit app tapping a button-how to?

Hi there,

How can i make a button, tapping on which will close application.
I am making for iPad and my OS in iPad is ios 4.2.

Please help.:smile:

Not advised.

Pressing such an on-screen button could appear to the user that the app has crashed; Also, having such a button could possibly/maybe lead to rejection by Apple.

Just be prepared to handle quitting of app via the Home button.