How to kill the app in ios environment or create a quite button

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

Hi, I recently create and app but when ever i press the central button it goes into suspended state and when ever i click the icon of the app it simply restores the state back of the app Could you please tell me how to restart the app when the app icon is clicked again or kill the app when the central button is pressed.

2 Answers

Accepted Answer

Hi Vivek,

If you want to run your application from first screen then you have to close your application when it goes in background.

See this link

— answered 9 months ago by Nitin Chavda
answer permalink
2 Comments
  • Hi Nitin i had written the code in info.plist but when i install it on IOS it does not work and when i check the Info.plist post installation the Key value pair is removed. Can you please help me related to it. The key value pair is not removed when it is build but only when it is installed Could you help me on this

    — commented 9 months ago by vivek singh

  • Hi Vivek, After changing info.plist you need copy that info.plist file into your project folder not in resource folder and then after you have to clean build and If you are testing in simulator then first time it crash but after you have to open application from simulator not to run again.

    — commented 9 months ago by Nitin Chavda

if you want to kill the app in easy way

1: when your app is in background/suspend mode, 2 times tap the home button and it show you all the app in the background mode.
2: Hold any app(shown in background) for some time it will present the Apps with minus symbol, which will let you kill the app.

Your Answer

This question has been locked and cannot accept new answers.