Is there a way to set the amount of memory available in the iPhone Simulator?

后端 未结 4 596
逝去的感伤
逝去的感伤 2020-12-11 01:27

Does anyone know if its possible to set the amount of memory available in the simulator?

I\'m assuming the simulator will use as much memory as possible from the sys

4条回答
  •  囚心锁ツ
    2020-12-11 01:57

    Apple documentation states that you can only simulate the low memory warning.

    Having said that, there are limitations when invoking from the menu. Here's a post that lets you better simulate real world scenarios when trying to invoke the warning: Easier low memory warning simulator testing with keyboard shortcuts

    I agree with @Jasarien that trying to limit the memory within the simulator is an artificial test and should be done on the device.

提交回复
热议问题