开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜