在iPhone模拟器中设置位置 [英] Set the location in iPhone Simulator
本文介绍了在iPhone模拟器中设置位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在iPhone模拟器中设置位置(因为它在CoreLocation服务中选取)?
How can I set the location (as it's picked up in CoreLocation services) in the iPhone Simulator?
推荐答案
从iOS 5开始,模拟器具有可配置的位置。
As of iOS 5, the simulator has a configurable location.
在Debug菜单下,最后一个条目是Location;这会给你一个子菜单:
Under the Debug menu, the last entry is "Location"; this gives you a sub menu with:
- 无
- 自定义位置
- Apple商店
- Apple
- 城市自行车骑行
- City Run
- Freeway Drive
- None
- Custom Location
- Apple Stores
- Apple
- City Bicycle Ride
- City Run
- Freeway Drive
自定义位置可让您输入Lat / Long值。骑自行车,城市奔跑和高速公路驾驶模拟移动位置(当然在库比蒂诺)。
Custom Location lets you enter a Lat/Long value. Bicycle ride, City Run, and Freeway Drive are simulation of a moving location (in Cupertino, of course).
当然,这对iOS的调试没有任何帮助4(或更早);但这是一个明显的改进!
Of course, this does nothing to help with debugging for iOS 4 (or earlier); but it's a definite improvement!
这篇关于在iPhone模拟器中设置位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文