Skip to content

Instantly share code, notes, and snippets.

@nickfox
Created September 14, 2013 00:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickfox/6557675 to your computer and use it in GitHub Desktop.
Save nickfox/6557675 to your computer and use it in GitHub Desktop.
@interface AreaViewControllerElement : NSObject
@property (nonatomic) NSInteger objectID;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *address1;
@property (nonatomic, copy) NSString *address2;
@property (nonatomic) NSUInteger diversionRate;
@property (nonatomic, retain) CLLocation *location;
@property (nonatomic) CLLocationDistance distance;
@end
********************** and
@interface AreaViewController () <LocationControllerDelegate>
@property (nonatomic, strong) CLLocation *myLocation;
@property (nonatomic, strong) NSMutableArray *closestLocations;
@property (nonatomic, strong) NSMutableArray *mapAnnotations;
@property (nonatomic, unsafe_unretained) IBOutlet MKMapView *mapView;
@property (nonatomic, unsafe_unretained) IBOutlet UIBarButtonItem *refreshButton;
@property (nonatomic, unsafe_unretained) IBOutlet UIBarButtonItem *toggleButton;
@property (nonatomic, unsafe_unretained) IBOutlet UIView *loadingView;
@property (nonatomic, unsafe_unretained) IBOutlet UIActivityIndicatorView *activityIndicatorView;
@property (nonatomic, assign) BOOL locationFound;
@property (nonatomic, assign) BOOL mapMoved;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment