iPhone Simulator - Simulate a slow connection?

前端 未结 6 450
离开以前
离开以前 2021-01-29 18:26

Is there a way to slow down the internet connection to the iPhone Simulator, so as to mimic how the App might react when you are in a slow spot on the cellular network?

6条回答
  •  猫巷女王i
    2021-01-29 18:51

    There isn't a direct way to emulate a slow connection, unlike, say, the nice network connection emulator that blackberry developers enjoy. However, since your simulator's connection goes through your computer - you can simply focus on slowing down your computer's connection.

    You'll want to achieve two things (depending upon your circumstances):

    • throttle your bandwidth
    • increase your latency

    Maybe this will point you in right direction:

    http://www.macosxhints.com/article.php?story=20080119112509736

    There are some good open source solutions, too, but I so can't remember their names.

    This question might help: How to throttle network traffic for environment simulation?

提交回复
热议问题