Is it possible to get the 'live' current location with an iOS Simulator?

拥有回忆 提交于 2019-11-30 23:31:48
Sam B

iPhone Simulator does exactly that, it simulates your Geo location. By itself it doesn't know in real life where you are and hence cannot give you real coordinates.

In terms of documentation of what these functions do, I got this from Apple docs.

Location

Allows you to set the Core Location to be used by your app. Choose from the different location settings:

  • None. Does not return a location. Use for testing how an app responds when no location data is available.

  • Custom Location. Allows use of a custom latitude and longitude. Apple Stores. Uses the coordinates for an Apple Retail Store.

  • Apple. Uses the coordinates of the Apple Headquarters.

  • City Bicycle Ride. Simulates a bike ride in Cupertino, CA. This option simulates the device moving on a predefined route.

  • City Run. Simulates a run in Cupertino, CA. This option simulates the device moving on a predefined route.

  • Freeway Drive. Simulates a drive through Cupertino, CA. This option simulates the device moving on a predefined route.

You can read more about it here.

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