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 连接
基础教程推荐
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- Play 商店的设备兼容性问题 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
