iPhone simulator - simulate 3G connection(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 连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:iPhone 模拟器 - 模拟 3G 连接


基础教程推荐
- 固定小数的Android Money Input 2022-01-01
- 使用 Ryzen 处理器同时运行 WSL2 和 Android Studio 2022-01-01
- Android ViewPager:在 ViewPager 中更新屏幕外但缓存的片段 2022-01-01
- :hover 状态不会在 iOS 上结束 2022-01-01
- 如何使 UINavigationBar 背景透明? 2022-01-01
- 在 iOS 上默认是 char 签名还是 unsigned? 2022-01-01
- LocationClient 与 LocationManager 2022-01-01
- “让"到底是怎么回事?关键字在 Swift 中的作用? 2022-01-01
- 如何使用 YouTube API V3? 2022-01-01
- Android文本颜色不会改变颜色 2022-01-01