iOS Network State simulation--network Link Conditioner

Source: Internet
Author: User

Http://www.ithao123.cn/content-2043219.html


[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.


IPhone Simulator

Installation:

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.


Real Machine

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.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.