MapKit

一翻伺、mapkit的基本使用

#import "ViewController.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
@interface ViewController ()
@property (weak, nonatomic) IBOutlet MKMapView *mapView;


/**   */
@property (nonatomic, strong) CLLocationManager *lM;

@end

@implementation ViewController


- (CLLocationManager *)lM
{
    if (!_lM) {
        _lM = [[CLLocationManager alloc] init];
        if ([_lM respondsToSelector:@selector(requestAlwaysAuthorization)])
        {
            [_lM requestAlwaysAuthorization];
        }
    }
    return _lM;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    /**
     MKMapTypeStandard = 0,
     MKMapTypeSatellite,
     MKMapTypeHybrid,
     MKMapTypeSatelliteFlyover NS_ENUM_AVAILABLE(10_11, 9_0),
     MKMapTypeHybridFlyover NS_ENUM_AVAILABLE(10_11, 9_0),
     */
//    self.mapView.mapType = MKMapTypeSatelliteFlyover;
    
    
//    self.mapView.zoomEnabled = NO;
//    
////    self.mapView.showsCompass = NO;
//    self.mapView.showsScale = YES;
    
    [self lM];
//    self.mapView.showsUserLocation = YES;
    
    self.mapView.userTrackingMode = MKUserTrackingModeFollowWithHeading;
    
    
}

@end

二、mapkit的中級(jí)使用

#import "ViewController.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
@interface ViewController ()<MKMapViewDelegate>
@property (weak, nonatomic) IBOutlet MKMapView *mapView;


/**   */
@property (nonatomic, strong) CLLocationManager *lM;

@end

@implementation ViewController


- (CLLocationManager *)lM
{
    if (!_lM) {
        _lM = [[CLLocationManager alloc] init];
        if ([_lM respondsToSelector:@selector(requestAlwaysAuthorization)])
        {
            [_lM requestAlwaysAuthorization];
        }
    }
    return _lM;
}

- (void)viewDidLoad {
    [super viewDidLoad];

    // Do any additional setup after loading the view, typically from a nib.
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    /**
     MKMapTypeStandard = 0,
     MKMapTypeSatellite,
     MKMapTypeHybrid,
     MKMapTypeSatelliteFlyover NS_ENUM_AVAILABLE(10_11, 9_0),
     MKMapTypeHybridFlyover NS_ENUM_AVAILABLE(10_11, 9_0),
     */
//    self.mapView.mapType = MKMapTypeSatelliteFlyover;
    
    
//    self.mapView.zoomEnabled = NO;
//    
////    self.mapView.showsCompass = NO;
//    self.mapView.showsScale = YES;
    
    [self lM];
   self.mapView.delegate = self;
    self.mapView.showsUserLocation = YES;
    
//    self.mapView.userTrackingMode = MKUserTrackingModeFollowWithHeading;
    
}

#pragma mark - MKMapViewDelegate
/**
 *  更新到位置
 *
 *  @param mapView      地圖
 *  @param userLocation 位置對(duì)象
 */
-(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
{
    /**
     *  MKUserLocation (大頭針模型)
     *
     
     *
     */
    userLocation.title = @"銀江軟件園";
    userLocation.subtitle = @"城市寶";
    
    
    // 設(shè)置地圖顯示中心
//    [self.mapView setCenterCoordinate:userLocation.location.coordinate animated:YES];
    
    
    // 設(shè)置地圖顯示區(qū)域
    MKCoordinateSpan span = MKCoordinateSpanMake(0.051109, 0.034153);
    MKCoordinateRegion region = MKCoordinateRegionMake(userLocation.location.coordinate, span);
    [self.mapView setRegion:region animated:YES];
    
    
    
}

三虹统、大頭針的添加

#import "ViewController.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>
#import "XMGAnno.h"

@interface ViewController ()<MKMapViewDelegate>

@property (weak, nonatomic) IBOutlet MKMapView *mapView;

/** <#注釋#> */
@property (nonatomic, strong) CLGeocoder *geoC;

@end

@implementation ViewController

- (CLGeocoder *)geoC
{
    if (!_geoC) {
        _geoC = [[CLGeocoder alloc] init];
    }
    return _geoC;
}




-(void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    
    // 1. 獲取當(dāng)前觸摸點(diǎn)
    CGPoint point = [[touches anyObject] locationInView:self.mapView];
    
    
    // 2. 轉(zhuǎn)換成經(jīng)緯度
    CLLocationCoordinate2D pt = [self.mapView convertPoint:point toCoordinateFromView:self.mapView];
    
    // 3. 添加大頭針
    [self addAnnoWithPT:pt];
    
   
    
}

//-(void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    // 移除大頭針(模型)
//    NSArray *annos = self.mapView.annotations;
//    [self.mapView removeAnnotations:annos];
//}

- (void)addAnnoWithPT:(CLLocationCoordinate2D)pt
{
    __block XMGAnno *anno = [[XMGAnno alloc] init];
    anno.coordinate = pt;
    anno.title = @"銀江軟件園";
    anno.subtitle = @"城市寶";
    anno.type = arc4random_uniform(5);
    [self.mapView addAnnotation:anno];
    CLLocation *loc = [[CLLocation alloc] initWithLatitude:anno.coordinate.latitude longitude:anno.coordinate.longitude];
    [self.geoC reverseGeocodeLocation:loc completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
        CLPlacemark *pl = [placemarks firstObject];
        anno.title = pl.locality;
        anno.subtitle = pl.thoroughfare;

    }];

    // 添加多個(gè)大頭針
//    self.mapView addAnnotations:<#(nonnull NSArray<id<MKAnnotation>> *)#>
    
    
}


#pragma mark - MKMapViewDelegate

-(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
{
    
}


/**
 *  當(dāng)我們添加大頭針模型時(shí),
 *
 *  @param mapView    地圖
 *  @param annotation 大頭針
 *
 *  @return 大頭針視圖
 */
-(MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id<MKAnnotation>)annotation
{
//    return nil;
 
    static NSString *inden = @"datouzhen";
    MKAnnotationView *pin = [mapView dequeueReusableAnnotationViewWithIdentifier:inden];
    if (pin == nil) {
        pin = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:inden];
    }
    
    pin.annotation = annotation;
    
    // 設(shè)置是否彈出標(biāo)注
    pin.canShowCallout = YES;
    XMGAnno *anno = (XMGAnno *)annotation;
    NSString *imageName = [NSString stringWithFormat:@"category_%zd", anno.type + 1];
    pin.image = [UIImage imageNamed:imageName];

    
    // 設(shè)置大頭針圖片(系統(tǒng)大頭針無效)
//    pin.image = [UIImage imageNamed:@"category_5"];
    
    
    pin.draggable = YES;
    
//    pin.calloutOffset = CGPointMake(5, 8);
    UIImageView *iv = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
    iv.image = [UIImage imageNamed:@"htl"];
    pin.leftCalloutAccessoryView = iv;
    
    UIImageView *ivR = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 44, 44)];
    ivR.image = [UIImage imageNamed:@"eason"];
    pin.rightCalloutAccessoryView = ivR;
    
    pin.detailCalloutAccessoryView = [UISwitch new];
    
    return pin;
    
}


- (MKPinAnnotationView *)systemAnnoWithMapView:(MKMapView *)mapView andAnno:(id<MKAnnotation>)annotation
{
    static NSString *inden = @"datouzhen";
    MKPinAnnotationView *pin = (MKPinAnnotationView *)[mapView dequeueReusableAnnotationViewWithIdentifier:inden];
    
    if (pin == nil) {
        pin = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:inden];
    }
    
    pin.annotation = annotation;
    
    // 設(shè)置是否彈出標(biāo)注
    pin.canShowCallout = YES;
    
    // 設(shè)置大頭針顏色
    pin.pinTintColor = [UIColor blackColor];
    
    // 從天而降
    pin.animatesDrop = YES;
    
    // 設(shè)置大頭針圖片(系統(tǒng)大頭針無效)
    //    pin.image = [UIImage imageNamed:@"category_5"];
    
    
    pin.draggable = YES;
    
    
    
    return pin;

}

// 不選中
-(void)mapView:(MKMapView *)mapView didDeselectAnnotationView:(MKAnnotationView *)view
{
    NSLog(@"不選中");
    NSLog(@"%@", view.annotation);
}

// 選中
-(void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
{
       NSLog(@"選中");
}



@end

四弓坞、利用系統(tǒng)App導(dǎo)航|3D視角|地圖快照截圖

#import "ViewController.h"
#import <MapKit/MapKit.h>



@interface ViewController ()

/**   */
@property (nonatomic, strong) CLGeocoder *geoC;
@property (weak, nonatomic) IBOutlet MKMapView *mapView;

@end

@implementation ViewController


- (CLGeocoder *)geoC
{
    if (!_geoC) {
        _geoC = [[CLGeocoder alloc] init];
    }
    return _geoC;
}


- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
   
    // 3D視角
//    MKMapCamera *camer = [MKMapCamera cameraLookingAtCenterCoordinate:CLLocationCoordinate2DMake(23.132931, 113.375924) fromEyeCoordinate:CLLocationCoordinate2DMake(23.135931, 113.375924) eyeAltitude:10];
//    self.mapView.camera = camer;
    
    //地圖快照截圖
    MKMapSnapshotOptions *option = [[MKMapSnapshotOptions alloc] init];
    // 針對(duì)地圖
    option.region = self.mapView.region;
    option.showsBuildings = YES;
    
    // 輸出圖片
    option.size = CGSizeMake(1000, 2000);
    option.scale = [UIScreen mainScreen].scale;
    
    
    MKMapSnapshotter *snap = [[MKMapSnapshotter alloc] initWithOptions:option];
    
    [snap startWithCompletionHandler:^(MKMapSnapshot * _Nullable snapshot, NSError * _Nullable error) {
        
        if (error == nil) {
            UIImage *image = snapshot.image;
            
            NSData *data = UIImagePNGRepresentation(image);
            
            [data writeToFile:@"/Users/xiaomage/Desktop/map.png" atomically:YES];
        }else
        {
            NSLog(@"--%@", error.localizedDescription);
        }
       
        
        
    }];
}


- (void)begNav
{
    [self.geoC geocodeAddressString:@"廣州" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
        // 廣州地標(biāo)
        CLPlacemark *gzP = [placemarks firstObject];
        
        [self.geoC geocodeAddressString:@"上海" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
            // 上海地標(biāo)
            CLPlacemark *shP = [placemarks firstObject];
            [self beginNavWithBpl:gzP andEndP:shP];
            
        }];
        
    }];
}

- (void)beginNavWithBpl:(CLPlacemark *)beginP andEndP:(CLPlacemark *)endP
{
    // 創(chuàng)建開始的地圖項(xiàng)
    CLPlacemark *clPB = beginP;
    MKPlacemark *mkPB = [[MKPlacemark alloc] initWithPlacemark:clPB];
    MKMapItem *beginI = [[MKMapItem alloc] initWithPlacemark:mkPB];
    
    // 創(chuàng)建結(jié)束的地圖項(xiàng)
    CLPlacemark *clP = endP;
    MKPlacemark *mkP = [[MKPlacemark alloc] initWithPlacemark:clP];
    MKMapItem *endI = [[MKMapItem alloc] initWithPlacemark:mkP];
    
    // 地圖項(xiàng)數(shù)組
    NSArray *items = @[beginI, endI];
    
    // 啟動(dòng)字典
    NSDictionary *dic = @{
                          // 導(dǎo)航方式
                          MKLaunchOptionsDirectionsModeKey : MKLaunchOptionsDirectionsModeDriving,
                          
                          // 地圖類型
                          MKLaunchOptionsMapTypeKey : @(MKMapTypeHybrid),
                          
                          // 是否顯示交通
                          MKLaunchOptionsShowsTrafficKey : @(YES)
                          };
    
    [MKMapItem openMapsWithItems:items launchOptions:dic];
}


@end

五、獲取導(dǎo)航路線信息

#import "ViewController.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

@interface ViewController ()

/**   */
@property (nonatomic, strong) CLGeocoder *geoC;


@end

@implementation ViewController


- (CLGeocoder *)geoC
{
    if (!_geoC) {
        _geoC = [[CLGeocoder alloc] init];
    }
    return _geoC;
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
  
    [self.geoC geocodeAddressString:@"廣州" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
        CLPlacemark *gzP = [placemarks firstObject];
        
        [self.geoC geocodeAddressString:@"shanghai" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
            CLPlacemark *shP = [placemarks firstObject];
            
            
            [self getRouteWithBeginPL:gzP andEndPL:shP];
         
        }];
 
    }];
 
}


- (void)getRouteWithBeginPL:(CLPlacemark *)beginP andEndPL:(CLPlacemark *)endPL
{
    
    MKDirectionsRequest *request = [[MKDirectionsRequest alloc] init];
    
    
    // 起點(diǎn)
    CLPlacemark *clP = beginP;
    MKPlacemark *mkP = [[MKPlacemark alloc] initWithPlacemark:clP];
    MKMapItem *sourceItem = [[MKMapItem alloc] initWithPlacemark:mkP];
    request.source = sourceItem;
    
    // 終點(diǎn)
    CLPlacemark *clP2 = endPL;
    MKPlacemark *mkP2 = [[MKPlacemark alloc] initWithPlacemark:clP2];
    MKMapItem *endItem = [[MKMapItem alloc] initWithPlacemark:mkP2];
    request.destination = endItem;
    
    MKDirections *direction = [[MKDirections alloc] initWithRequest:request];
    
    [direction calculateDirectionsWithCompletionHandler:^(MKDirectionsResponse * _Nullable response, NSError * _Nullable error) {
        /**
         *  MKDirectionsResponse
            routes : 路線數(shù)組MKRoute
         
         */
        /**
         *  MKRoute
            name : 路線名稱
            distance : 距離
         expectedTravelTime : 預(yù)期時(shí)間
            polyline : 折線(數(shù)據(jù)模型)
         steps
         */
        /**
         *  steps <MKRouteStep *>
            instructions : 行走提示
         */
//        NSLog(@"%@", response);
        
        [response.routes enumerateObjectsUsingBlock:^(MKRoute * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
           NSLog(@"%@---%zd---%f", obj.name, obj.expectedTravelTime, obj.distance);
            
            [obj.steps enumerateObjectsUsingBlock:^(MKRouteStep * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
                NSLog(@"%@", obj.instructions);
            }];
   
        }];
        
        
    }];

}

@end

六车荔、繪制路線信息

#import "ViewController.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

@interface ViewController ()<MKMapViewDelegate>

/**   */
@property (nonatomic, strong) CLGeocoder *geoC;

@property (weak, nonatomic) IBOutlet MKMapView *mapView;

@end

@implementation ViewController


- (CLGeocoder *)geoC
{
    if (!_geoC) {
        _geoC = [[CLGeocoder alloc] init];
    }
    return _geoC;
}


- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
  
    [self.geoC geocodeAddressString:@"廣州" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
        CLPlacemark *gzP = [placemarks firstObject];
        
        [self.geoC geocodeAddressString:@"shanghai" completionHandler:^(NSArray<CLPlacemark *> * _Nullable placemarks, NSError * _Nullable error) {
            CLPlacemark *shP = [placemarks firstObject];
            
            
            [self getRouteWithBeginPL:gzP andEndPL:shP];
         
        }];
 
    }];
 
}


- (void)getRouteWithBeginPL:(CLPlacemark *)beginP andEndPL:(CLPlacemark *)endPL
{
    
    MKCircle *circle = [MKCircle circleWithCenterCoordinate:beginP.location.coordinate radius:100000];
    [self.mapView addOverlay:circle];
    
    MKCircle *circle2 = [MKCircle circleWithCenterCoordinate:endPL.location.coordinate radius:100000];
    [self.mapView addOverlay:circle2];
    
    
    MKDirectionsRequest *request = [[MKDirectionsRequest alloc] init];
    
    
    // 起點(diǎn)
    CLPlacemark *clP = beginP;
    MKPlacemark *mkP = [[MKPlacemark alloc] initWithPlacemark:clP];
    MKMapItem *sourceItem = [[MKMapItem alloc] initWithPlacemark:mkP];
    request.source = sourceItem;
    
    // 終點(diǎn)
    CLPlacemark *clP2 = endPL;
    MKPlacemark *mkP2 = [[MKPlacemark alloc] initWithPlacemark:clP2];
    MKMapItem *endItem = [[MKMapItem alloc] initWithPlacemark:mkP2];
    request.destination = endItem;
    
    MKDirections *direction = [[MKDirections alloc] initWithRequest:request];
    
    [direction calculateDirectionsWithCompletionHandler:^(MKDirectionsResponse * _Nullable response, NSError * _Nullable error) {
        /**
         *  MKDirectionsResponse
            routes : 路線數(shù)組MKRoute
         
         */
        /**
         *  MKRoute
            name : 路線名稱
            distance : 距離
         expectedTravelTime : 預(yù)期時(shí)間
            polyline : 折線(數(shù)據(jù)模型)
         steps
         */
        /**
         *  steps <MKRouteStep *>
            instructions : 行走提示
         */
//        NSLog(@"%@", response);
        
        [response.routes enumerateObjectsUsingBlock:^(MKRoute * _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
            
            
           NSLog(@"%@---%zd---%f", obj.name, obj.expectedTravelTime, obj.distance);
            
            
            MKPolyline *polyline = obj.polyline;
            // 添加一個(gè)覆蓋層數(shù)據(jù)模型
            [self.mapView addOverlay:polyline];

        }];
    
    }];

}



#pragma mark - MKMapViewDelegate

/**
 *  獲取對(duì)應(yīng)的圖層渲染
 *
 *  @param mapView 地圖
 *  @param overlay 覆蓋層數(shù)據(jù)模型
 *
 *  @return 圖層渲染
 */
-(MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay
{
    if ([overlay isKindOfClass:[MKCircle class]]) {
        MKCircleRenderer *circleR = [[MKCircleRenderer alloc] initWithOverlay:overlay];
        
        circleR.fillColor = [UIColor cyanColor];
        circleR.alpha = 0.5;
        
        return circleR;
    }
    

 if ([overlay isKindOfClass:[MKPolyline class]])
 {
    MKPolylineRenderer *render = [[MKPolylineRenderer alloc] initWithOverlay:overlay];
    
    // 設(shè)置線寬
    render.lineWidth = 10;
    // 設(shè)置顏色
    render.strokeColor = [UIColor redColor];
    
    return render;
 }
    
    
    return nil;
    
}


最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末渡冻,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子夸赫,更是在濱河造成了極大的恐慌菩帝,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,110評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件茬腿,死亡現(xiàn)場(chǎng)離奇詭異呼奢,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)切平,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,443評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門握础,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人悴品,你說我怎么就攤上這事禀综。” “怎么了苔严?”我有些...
    開封第一講書人閱讀 165,474評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵定枷,是天一觀的道長(zhǎng)。 經(jīng)常有香客問我届氢,道長(zhǎng)欠窒,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,881評(píng)論 1 295
  • 正文 為了忘掉前任退子,我火速辦了婚禮岖妄,結(jié)果婚禮上型将,老公的妹妹穿的比我還像新娘。我一直安慰自己荐虐,他們只是感情好七兜,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,902評(píng)論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著福扬,像睡著了一般腕铸。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上忧换,一...
    開封第一講書人閱讀 51,698評(píng)論 1 305
  • 那天恬惯,我揣著相機(jī)與錄音,去河邊找鬼亚茬。 笑死,一個(gè)胖子當(dāng)著我的面吹牛浓恳,可吹牛的內(nèi)容都是我干的刹缝。 我是一名探鬼主播,決...
    沈念sama閱讀 40,418評(píng)論 3 419
  • 文/蒼蘭香墨 我猛地睜開眼颈将,長(zhǎng)吁一口氣:“原來是場(chǎng)噩夢(mèng)啊……” “哼梢夯!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起晴圾,我...
    開封第一講書人閱讀 39,332評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤颂砸,失蹤者是張志新(化名)和其女友劉穎,沒想到半個(gè)月后死姚,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體人乓,經(jīng)...
    沈念sama閱讀 45,796評(píng)論 1 316
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,968評(píng)論 3 337
  • 正文 我和宋清朗相戀三年都毒,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了色罚。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點(diǎn)故事閱讀 40,110評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡账劲,死狀恐怖戳护,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情瀑焦,我是刑警寧澤腌且,帶...
    沈念sama閱讀 35,792評(píng)論 5 346
  • 正文 年R本政府宣布,位于F島的核電站榛瓮,受9級(jí)特大地震影響铺董,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜榆芦,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,455評(píng)論 3 331
  • 文/蒙蒙 一柄粹、第九天 我趴在偏房一處隱蔽的房頂上張望喘鸟。 院中可真熱鬧,春花似錦驻右、人聲如沸什黑。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,003評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽愕把。三九已至,卻和暖如春森爽,著一層夾襖步出監(jiān)牢的瞬間恨豁,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,130評(píng)論 1 272
  • 我被黑心中介騙來泰國(guó)打工爬迟, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留橘蜜,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,348評(píng)論 3 373
  • 正文 我出身青樓付呕,卻偏偏與公主長(zhǎng)得像计福,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子徽职,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,047評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容

  • 跟蹤顯示用戶的位置 設(shè)置MKMapView的userTrackingMode屬性可以跟蹤顯示用戶的當(dāng)前位置 MKU...
    JonesCxy閱讀 2,123評(píng)論 0 4
  • MapKit框架的使用 一. 地圖的基本使用 1. 設(shè)置地圖顯示類型 地圖的樣式可以手動(dòng)設(shè)置, 在iOS9.0之前...
    0271fb6f797c閱讀 327評(píng)論 0 1
  • MapKit框架的使用 一. 地圖的基本使用 1. 設(shè)置地圖顯示類型 地圖的樣式可以手動(dòng)設(shè)置, 在iOS9.0之前...
    Jack__yang閱讀 459評(píng)論 0 3
  • MapKit框架的使用 一. 地圖的基本使用 1. 設(shè)置地圖顯示類型 地圖的樣式可以手動(dòng)設(shè)置, 在iOS9.0之前...
    iOS_Cqlee閱讀 2,336評(píng)論 1 6
  • MapKit框架使用(初級(jí)) 導(dǎo)入框架 導(dǎo)入主頭文件 MapKit框架須知 1.MapKit框架數(shù)據(jù)類型的前綴都是...
    fwlong閱讀 1,679評(píng)論 2 7