地图定位

来源:互联网 发布:网络卒是什么梗 编辑:程序博客网 时间:2024/06/08 09:31

- (IBAction)locateUser:(id)sender {

    

        

        CLLocationCoordinate2D coordinate;


        coordinate.latitude =self.mapview.userLocation.location.coordinate.latitude;

        coordinate.longitude =self.mapview.userLocation.location.coordinate.longitude;

        

        [selfzoomToFitMapAnnotationsOK:mapview];

        

}

原创粉丝点击