MKMapView with address

后端 未结 5 1890
梦毁少年i
梦毁少年i 2021-02-05 15:25

is there a way to make the MKMapView place a pin with a given address? Without using the Coordinates

Thanks

5条回答
  •  无人及你
    2021-02-05 16:06

    here is a snippet of code I used in an application

    [NSString stringWithContentsOfURL:] is deprecated for now. You have to use:

    NSString *locationStr = [NSString stringWithContentsOfURL:[NSURL URLWithString:urlStr] encoding:NSUTF8StringEncoding error:nil];
    

提交回复
热议问题