Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 10 years ago.
有一个 CLLocationManager 类,它允许您执行有关位置的各种操作。
它有以下方法:
+ (BOOL)regionMonitoringAvailable + (BOOL)regionMonitoringEnabled - (void)startMonitoringForRegion:(CLRegion *)region - (void)startMonitoringForRegion:(CLRegion *)region desiredAccuracy:(CLLocationAccuracy)accuracy - (void)stopMonitoringForRegion:(CLRegion *)region
设置区域监控后,您可以在 CLLocationManagerDelgate 中收到以下回调:
- (void)locationManager:(CLLocationManager *)manager didEnterRegion:(CLRegion *)region - (void)locationManager:(CLLocationManager *)manager didExitRegion:(CLRegion *)region
这些方法的使用方式与 CoreLocation 中其他位置方法的使用方式几乎完全相同。 Apple 的官方文档提供了一些如何详细使用它们的信息: http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW13
There's a CLLocationManager class, that allows you various stuff about location.
CLLocationManager
It has following methods:
after you setup region monitoring, you can receive the following callback in your CLLocationManagerDelgate:
CLLocationManagerDelgate
These methods are used almost the same exact way as the rest location methods are used in CoreLocation. The official docs from Apple have some info how to use them in details: http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW13
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(1)
有一个 CLLocationManager 类,它允许您执行有关位置的各种操作。
它有以下方法:
设置区域监控后,您可以在 CLLocationManagerDelgate 中收到以下回调:
这些方法的使用方式与 CoreLocation 中其他位置方法的使用方式几乎完全相同。 Apple 的官方文档提供了一些如何详细使用它们的信息: http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW13
There's a
CLLocationManager
class, that allows you various stuff about location.It has following methods:
after you setup region monitoring, you can receive the following callback in your
CLLocationManagerDelgate
:These methods are used almost the same exact way as the rest location methods are used in CoreLocation. The official docs from Apple have some info how to use them in details: http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html#//apple_ref/doc/uid/TP40009497-CH2-SW13