00001
00002
00003
00004
00005
00006
00007
00008
00009 #import <UIKit/UIKit.h>
00010 #import <CoreLocation/CoreLocation.h>
00011
00020 @interface LocateViewController : UIViewController <CLLocationManagerDelegate,UIAlertViewDelegate>
00021 {
00022 UILabel *_currentLocationLabel;
00023 UIButton *_showOnMapButton;
00024
00025 CLLocationManager * _locationManager;
00026 UIAlertView * _alertView;
00027
00028 CLLocation * _currentLocation;
00029 }
00030
00031 @property(nonatomic, retain) IBOutlet UILabel *currentLocationLabel;
00032 @property(nonatomic, retain) IBOutlet UIButton *showOnMapButton;
00033
00034 - (IBAction) locateAction;
00035 - (IBAction) showOnMapAction;
00036 - (IBAction) locatingAndHeadingAction;
00037 - (IBAction) clearMapAction;
00038
00039 @end