2010-11-29 3 views
1

내 앱에는 주소,시 /도,시 /도 코드 및 우편 번호를 전달하여로드 할지도가 필요합니다. 아무도 내가 그것을 할 수있는 방법을 말해 줄 수 있습니까 ??iphone sdk의지도로드 중

답변

0

당신은 아래에 사용할 수 있습니다 여기에있을 것입니다 좌표를 얻기 위해 GeoCode ur 주소를 입력하고 UR MkMapview에 좌표 영역을 설정할 수 있습니다 ..

0

Google 또는 SO 검색을 시도해 보셨습니까?

NSString* yourFullAddress = @"address,city, state province code and postal code"; 

    yourFullAddress = [yourFullAddress stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; 

    // Now create the URL string ... 
    NSString* urlString = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@", yourFullAddress]; 

    // An the final magic ... openURL! 
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlString]]; 

또는 경우에 u는 그나마 구글 맵을 열려는 오히려 UR MKMapView ... U에 좌표를 설정 -이 :

좋은 시작은 http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/