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

查看:19
本文介绍了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?

澄清:我使用的是雪豹.限制带宽不是我需要的.我需要将实际接口识别为 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天全站免登陆