EKLocationReminders/EKLocationReminders/LocationReminder.m
/* |
Copyright (C) 2015 Apple Inc. All Rights Reserved. |
See LICENSE.txt for this sample’s licensing information |
Abstract: |
Model class representing a location reminder. |
*/ |
#import "LocationReminder.h" |
@implementation LocationReminder |
-(instancetype)init |
{ |
self = [self initWithTitle:nil proximity:nil structureLocation:nil]; |
if (self != nil) |
{ |
} |
return self; |
} |
-(instancetype)initWithTitle:(NSString *)name proximity:(NSString *)proximity structureLocation:(EKStructuredLocation *)location |
{ |
self = [super init]; |
if(self != nil) |
{ |
_title = name; |
_proximity = proximity; |
_structuredLocation = location; |
} |
return self; |
} |
@end |
Copyright © 2015 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2015-11-13