3 ms·
The simulator can simulate a low-memory warning. To simulate an app being killed, just kill the app from Xcode.
by jkubicek 15y ago
The simulator can simulate a low-memory warning. To simulate an app being killed, just kill the app from Xcode.
- gavingmiller 15y agoThe key word there is simulate. There are cases (see my response) that arise that purposely triggering these state changes could really help with.
- giesti 15y agoYou could try to write a very simple app to run in background and waste memory on purpose (e.g. creating some shit in a loop) if you really needda replicate such a scenario w/o emulation. In my experience, as usually you can get away with ~30mb of "wasted" memory per each instance before iOS kills the daemon. So just launch a couple of those and enjoy.