1

How do I programmatically minimize an iPad/iPhone UIApplication?

Aliza
  • 734
  • 1
  • 10
  • 25

2 Answers2

2

Actually there no such method for minimize iPhone app.

You can try with "exit(0)" to close the app.

Cheers.

Nishant B
  • 2,897
  • 1
  • 18
  • 25
  • That would probably result in your app not being accepted on the store, though. – EmilioPelaez Jun 30 '11 at 05:46
  • Yes, may be. But there is no other option. – Nishant B Jun 30 '11 at 05:58
  • Hi, I think there will be no chance of Reject. Please review below app on App Store: "http://itunes.apple.com/us/app/knife-throw/id365462517?mt=8" .... Here, when you will play game and then Pause it then there is one option to Exit Game. So, it will close the game. So, apple may not reject. Hope it will be helpful to you. – Nishant B Jun 30 '11 at 06:04
0

You can't. You can only switch to another app. I don't think apple has a public API for doing this.

Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156