开发者

iPhone GPS CLLocation lock?

开发者 https://www.devze.com 2023-01-10 22:36 出处:网络
How do I go about in an iPhone app, getting the user to click a button to find their location, with the CLLocation automatically locking or stopping when a good enough results is found after a few sec

How do I go about in an iPhone app, getting the user to click a button to find their location, with the CLLocation automatically locking or stopping when a good enough results is found after a few seconds?

Is there a function or an algorithm?

ie: if it finds a lo开发者_运维技巧cation with accuracy of 5m, stop, or stop after 15 seconds of trying.


The LocateMe sample application is a good starting point.

0

精彩评论

暂无评论...
验证码 换一张
取 消