Starts monitoring the specified region for boundary crossings.
- iOS 4.0–6.0Deprecated
- Core Location
The region object that defines the boundary to monitor. This parameter must not be
The distance past the border (measured in meters) at which to generate notifications. You can use this value to prevent the delivery of multiple notifications when the user is close to the border’s edge.
You must call this method separately for each region you want to monitor. If an existing region with the same identifier is already being monitored by the app, the old region is replaced by the new one. The regions you add using this method are shared by all location manager objects in your app and stored in the
If you begin monitoring a region and your app is subsequently terminated, the system automatically relaunches it into the background if the region boundary is crossed. In such a case, the options dictionary passed to the
application: method of your app delegate contains the key
UIApplication to indicate that your app was launched because of a location-related event. In addition, creating a new location manager and assigning a delegate results in the delivery of the corresponding region messages. The newly created location manager’s
location property also contains the current location even if location services are not enabled.
Region events are delivered to the
location methods of your delegate. If there is an error, the location manager calls the
location method of your delegate instead.