30 lines
609 B
Objective-C
Executable File
30 lines
609 B
Objective-C
Executable File
//
|
|
// CoreLocationController.h
|
|
// CoreLocationDemo
|
|
//
|
|
// Created by Nicholas Vellios on 8/15/10.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <CoreLocation/CoreLocation.h>
|
|
|
|
@protocol CoreLocationControllerDelegate
|
|
@required
|
|
|
|
- (void)locationUpdate:(CLLocation *)location;
|
|
- (void)locationError:(NSError *)error;
|
|
|
|
@end
|
|
|
|
|
|
@interface CoreLocationController : NSObject <CLLocationManagerDelegate> {
|
|
CLLocationManager *locMgr;
|
|
id delegate;
|
|
}
|
|
|
|
@property (nonatomic, retain) CLLocationManager *locMgr;
|
|
@property (nonatomic, assign) id delegate;
|
|
|
|
@end
|