iPhone模拟器 - 模拟3G连接 [英] iPhone simulator - simulate 3G connection

查看:92
本文介绍了iPhone模拟器 - 模拟3G连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在测试Reachability api,但我的物理设备只有WiFi接入,因为我没有电话合同。我的代码需要区分连接到3G / 2G或WiFi。是否可以在iPhone模拟器上模拟3G连接?

I am testing the Reachability api, but my physical device only has WiFi access, as I don't have a phone contract. My code needs to distinguish between being connected to 3G/2G or WiFi. Is it possible to simulate a 3G connection on the iPhone simulator?

澄清:我正在使用Snow Leopard。限制带宽不是我需要的。我需要将实际接口识别为3G或2G无线电,而不是WiFi。

Clarifications: I am using Snow Leopard. Limiting the bandwidth is not what I need. I need for the actual interface to be identified as the 3G or 2G radio, as opposed to WiFi.

推荐答案

如果您正在使用Lion试用网络链接护发素

If you are using Lion try the Network Link Conditioner

现在,设备上的首选项中有一部分(当注册为开发者设备时),其中有网络链接调节器可用。

Nowdays there is a part in Preferences on the device (when registered as a developer device) where a "Network Link Conditioner" is available.

这篇关于iPhone模拟器 - 模拟3G连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆