Xcode模拟器定位 - GPX
作者:
薄凉_简书 | 来源:发表于
2018-04-02 14:03 被阅读38次
一、如果只需要一个固定的点,建议使用修改模拟器的定位经纬度,省略添加GPX文件的步骤
点击模拟器 --> Debug --> Location --> Custom Location,然后输入需要点的经纬度,OK即可。
二、如果需要多个位置切换,建议使用GPX文件定位。切换速度快,不用再设置新的经纬度。
Xcode自带GPX资源文件,新建GPX文件后,只需要修改经纬度即可。
设置默认位置:
Edite Scheme --> Options --> Allow Location Simulation(默认选中)--> Default Location --> Add GPX File to Project/或者选择一个创建的GPX文件
切换位置:
选择Xcode底部导航 Simulate Location,切换已创建的GPX位置。
本文标题:Xcode模拟器定位 - GPX
本文链接:https://www.haomeiwen.com/subject/gsgthftx.html
网友评论