app地图调用系统地图

2018-03-06  本文已影响16人  seventhboy

import "ViewController.h"

import <CoreLocation/CoreLocation.h>

import <MapKit/MapKit.h>

import "MKMapAnnotation.h"

@interface ViewController ()<MKMapViewDelegate, UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UIView *mapBackView;
@property (weak, nonatomic) IBOutlet UITextField *destinationTextField;
@property (weak, nonatomic) IBOutlet UIButton *showButton;
@property (weak, nonatomic) IBOutlet UIButton *jumpButton;
@property (weak, nonatomic) IBOutlet UILabel *errorMessageLabel;

@property (nonatomic, strong) CLGeocoder * geocoder;
@property (nonatomic, strong) MKMapView * mapView;
@property (nonatomic, strong) CLPlacemark * clDestinationPlacemark;
@property (nonatomic, strong) MKMapAnnotation * annotation;

@end

@implementation ViewController

pragma mark - 添加大头针 -

@end

上一篇 下一篇

猜你喜欢

热点阅读