Deprecated CLRegion Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 7.0

center

The center point of the region. (read-only) (Deprecated in iOS 7.0.)

@property(readonly, nonatomic) CLLocationCoordinate2D center
Special Considerations

In iOS, use a CLCircularRegion object to manage geographic regions.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Related Sample Code
Declared In
CLRegion.h

radius

The radius (measured in meters) that defines the region’s outer boundary. (read-only) (Deprecated in iOS 7.0.)

@property(readonly, nonatomic) CLLocationDistance radius
Special Considerations

In iOS, use a CLCircularRegion object to manage geographic regions.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Related Sample Code
Declared In
CLRegion.h

containsCoordinate:

Returns a Boolean value indicating whether the region contains the specified coordinate. (Deprecated in iOS 7.0.)

- (BOOL)containsCoordinate:(CLLocationCoordinate2D)coordinate
Parameters
coordinate

The coordinate to test against the region.

Return Value

YES if the coordinate lies within the region’s boundaries or NO if it does not.

Special Considerations

In iOS, use a CLCircularRegion object to manage geographic regions.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Declared In
CLRegion.h

initCircularRegionWithCenter:radius:identifier:

Initializes and returns a region object defining a circular area. (Deprecated in iOS 7.0.)

- (id)initCircularRegionWithCenter:(CLLocationCoordinate2D)center radius:(CLLocationDistance)radius identifier:(NSString *)identifier
Parameters
center

The center point of the region.

radius

The distance (measured in meters) from the center point that marks the boundary of the region.

identifier

A unique identifier to associate with the region object. You use this identifier to differentiate regions within your application. This value must not be nil.

Return Value

An initialized region object.

Special Considerations

In iOS, use a CLCircularRegion object to manage geographic regions.

Availability
  • Available in iOS 4.0 and later.
  • Deprecated in iOS 7.0.
Related Sample Code
Declared In
CLRegion.h