大头针的定义放置

来源:互联网 发布:错生网络剧第一集 编辑:程序博客网 时间:2024/05/17 07:07

非自定义,简单的一个大头针

//地图中心位置,大头针位子

 CLLocationCoordinate2Dcorrdinate=CLLocationCoordinate2DMake(23.357352,116.698285);   

   MKCoordinateSpanspan=MKCoordinateSpanMake(0.1,0.1);

    MKCoordinateRegion regin=MKCoordinateRegionMake(corrdinate,span);

   _Enterprise_map.region=regin;

   MKPointAnnotation *annotation=[[MKPointAnnotationalloc]init];

    annotation.coordinate=corrdinate;

    annotation.title=@"title";

    annotation.subtitle=@"subtitle";

    [_Enterprise_mapaddAnnotation:annotation];

    [annotationrelease];

制定一大头针……待续

0 0
原创粉丝点击