EKStructuredLocation Class Reference
| Inherits from | |
| Conforms to | |
| Availability | Available in iOS 6.0 and later. |
| Companion guide | |
| Declared in | EKStructuredLocation.h |
Overview
The EKStructuredLocation class specifies a geofence that can be used to trigger the alarm of a calendar item. Use locationWithTitle: to create a new structured location, then set it to the structuredLocation property of an EKAlarm object.
Tasks
Creating Structured Locations
Accessing Structured Location Properties
-
titleproperty -
geoLocationproperty -
radiusproperty
Properties
geoLocation
The core location.
@property(nonatomic, retain) CLLocation *geoLocation;
Availability
- Available in iOS 6.0 and later.
Declared In
EKStructuredLocation.hradius
A minimum distance from the core location that would trigger the alarm or reminder.
@property(nonatomic) double radius;
Discussion
To use the default radius, set this property to 0.
Availability
- Available in iOS 6.0 and later.
Declared In
EKStructuredLocation.htitle
The title of the location.
@property(nonatomic, retain) NSString *title;
Availability
- Available in iOS 6.0 and later.
Declared In
EKStructuredLocation.hClass Methods
locationWithTitle:
Creates a new structured location.
+ (EKStructuredLocation *)locationWithTitle:(NSString *)title;
Parameters
- title
The title of the location.
Return Value
The structured location object.
Availability
- Available in iOS 6.0 and later.
Declared In
EKStructuredLocation.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)