exit(0) iphone

You must Login before you can answer or comment on any questions.

Hi. How can I exit from application if I pressed the cancel button in terms & conditions window? Thanks

3 Answers

For this you have to make custom module , its very simple and you have to follow only certain steps :

reffer link to make custom module

— answered 1 year ago by Moiz Chhatriwala
answer permalink
1 Comment
  • I had implemented the same with module and application is also approved by Apple and is in market , so there is nothing to get worried about Apple policy and other related things.

    — commented 1 year ago by Moiz Chhatriwala

Yury,

iPhone

You can't exit a App in iPhone. Its against Apple policy. Also there is no call to exit a iPhone App. The only way to exit a app is by throwing error, this will crash your app and make your app to exit. We did a app which has a button to exit the current app, the logic we applied is when the user hits the exit button we throw an error like assigning string to integer, etc.. which exits my app by crashing it. Apple approved the app too.

Android

for the case of android refer this link

=========

Thanks

Your Answer

Think you can help? Login to answer this question!