현재 iPhone 응용 프로그램에서 UIWebview를 사용하여 "America"와 같은 주소를로드 한 다음 응용 프로그램을 실행하면 화면에지도가 표시되지 않습니다. 사용자 입력란에서 입력 한 위치를 표시하고 싶습니다. 어떻게이 iuissue를 고칠 수 있습니까?iPhone에서 webview에서 주소를로드하는 방법은 무엇입니까?
webView=[[UIWebView alloc]initWithFrame:CGRectMake(0, 40, 320,376)];
webView.delegate=self;
webView.scalesPageToFit=YES;
NSString *mapurl = @"http://maps.google.com/maps?q=";
NSString *urlString1 = [mapurl stringByAppendingFormat:@"America"];
NSString *OmitSpace = [urlString1 stringByReplacingOccurrencesOfString:@" " withString:@"%20"];
NSURL *url=[NSURL URLWithString:OmitSpace];
NSURLRequest *requestObj=[NSURLRequest requestWithURL:url];
[webView loadRequest:requestObj];
스크린 샷 :이 내용은 공백을 생략합니다
답장을 보내 주셔서 감사합니다. – SampathKumar
의심스러운 점이 있으시면 – SampathKumar
http://maps.googleapis.com/maps/api/geocode/json?address=america&sensor=true 위도와 경도는 위도와 경도가이 링크에 4 개 있습니다. 가져. – SampathKumar