How can I simulate app being killed in background?

后端 未结 4 1089
小蘑菇
小蘑菇 2021-02-05 01:21

I\'m trying to verify that my app (App1) behaves correctly when it is shut down by the system after it launches another app (App2). Is there any way to simulate or force this be

4条回答
  •  太阳男子
    2021-02-05 01:51

    You should be able to:

    • Tap the home button, to take you to the home screen
    • Tap the home button twice (use the keyboard shortcut in the simulator)
    • Touch and hold the icon at the bottom until it starts to wiggle
    • Tap the dash circle - to remove it from memory

    This gives you the app delegate methods of going into the background, etc. This is how it works in iOS 6 and below.

提交回复
热议问题