Set current user location in iPhone simulator

只谈情不闲聊 提交于 2019-12-10 06:05:51

问题


Is there a way to set the current user location in iPhone simulator on Xcode 4?, I want the simulator to show a different location other than Cupertino.


回答1:


Yes, from the simulator's menu choose Debug > Location > Custom Location....




回答2:


You can Simulate Location by selecting Product -> Debug -> Simulate Location and select Location option from Xcode tool.

This is shown in following figure:




回答3:


You can add GPX file to get the current location on simulator.



来源:https://stackoverflow.com/questions/6223345/set-current-user-location-in-iphone-simulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!