开发者

How to check if iPhone's current location is within a specific region with mapkit

开发者 https://www.devze.com 2023-03-19 20:02 出处:网络
In my iOS app, a mapkit object displays the user\'s current location and zooms in on it. I would like to put that code into an if statement so that it will only happen when the user is within a spec

In my iOS app, a mapkit object displays the user's current location and zooms in on it.

I would like to put that code into an if statement so that it will only happen when the user is within a specified geographic region (a specific country,开发者_开发技巧 city etc).

Any help will be hugely appreciated.

Thanks, Roy


Some Resources I found useful.

CLLocationManager Class Reference

CLRegion Class Reference

Core Location region monitoring

0

精彩评论

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