如何在模拟器上测试地理位置 [英] how to test geolocation on simulator

查看:114
本文介绍了如何在模拟器上测试地理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从地理编码开始,在阅读了一些东西之后,我意识到有些人正在使用模拟器来测试他们的代码。

I'm starting with geocoding, and after read a few things I realize that are some people using the simulator for testing their code.

这是可能的吗? ?有人可以告诉哪些工具使用!?
(这比行走更好)

Is that possible!?? Can someone tell which tools use!? (it's better than walking around)

谢谢

Thanks

推荐答案

<现在,支持iOS 5的XCode 4.2支持位置模拟,您可以参考 HERE

使用此功能的步骤:

Steps to use this feature:


  1. 构建&在> iPhone 5.0 Simular 中运行您的应用程序。

  2. 在顶部菜单栏中,可以找到 Debug - > 位置 - > 自定义位置.. (或者您可以选择使用其他) 。

  3. 设置 Latitude & 经度

  1. Build & run your app in iPhone 5.0 Simular.
  2. At the top menu bar, you'll find Debug -> Location -> Custom Location..(or you can choose to use others).
  3. Set the Latitude & Longitude for the location.

这篇关于如何在模拟器上测试地理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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