[Summary: For iOS pioneers, one of the future versions of Mac OS X 10.7 and iOS 6,--network Link conditioner, is going to be a big sponsor at some time. The article is first and foremost to accommodate that object. IPhone Simulator Device:]
For iOS developers,--network Link Conditioner, a development tool in the MAC OS X 10.7 and later versions of iOS 6, will be helpful at some point. This article is mainly to introduce the tool in brief.
1.Xcode-> Open Developer Tool-> more Developer Tools
Search Network Link Conditioner and select the appropriate hardware IO Tools for Xcode version to download.
2. When the download is complete, open the DMG file and double-click Network Link condition.prefpane to install it.
3. After the installation is complete, you can enter the network Link conditioner panel from the System Preferences.
Once you've opened it, you'll be able to switch the network environment of the iphone simulator using network Link conditioner. Network Link Conditioner The following network environments for you:
EDGE 3G DSL WiFi High latency DNS Very Bad network 100% Loss at the same time, you can also define your own network environment state
Then Command+r run your app in the simulator and replace the network environment in network Link conditioner to try to see what happens. See what impact network latency has on your app. Take a look at how network bandwidth affects the sliding effect of your tableview.
To use network Link conditioner on a real machine, you need to first set your machine to Development mode:
1. Connect your iphone or ipad to your Mac
2. In Xcode, Shift+command+2 opens organizer
3. Select your device
4.Use for Development
Remember to turn it off after testing with network Link conditioner, whether it's using a simulator or a real machine.