Monday, 15 September 2014

ios - How can I simulate app being killed in background? -



ios - How can I simulate app being killed in background? -

i'm trying verify app (app1) behaves correctly when shut downwards scheme after launches app (app2). there way simulate or forcefulness behavior?

telling simulator simulate memory warning while app2 running doesn't until app1 brought foreground. killing app1 debugger simulate same sequence of app events?

edit: app placed in background when launches sec app handle file. sec app relaunches app, , i'm trying verify app behaves correctly when scheme has shut downwards while sec app executing.

yes, if app in background already. app killed scheme while in background terminated no warning-- no app delegate methods called, no state changes made-- happens when debugger stop while app in background. (this presupposes you've set app in background clicking home button on simulator or cmd-shift-h)

(as @inafziger notes, can same effect using simulator's interface forcefulness quit running app.)

ios ios-simulator

No comments:

Post a Comment