0
저는 몇 주 동안이 문제에 갇혀 있었기 때문에 도움을 많이주었습니다. 메신저 개발 ios 응용 프로그램과 함께 HTTP 게시물을 보내려고하지만 push (URL 연결에서 응답으로 코드 200 얻을 서버에 도달 결코).webservice by johnpet
저는 몇 주 동안이 문제에 갇혀 있었기 때문에 도움을 많이주었습니다. 메신저 개발 ios 응용 프로그램과 함께 HTTP 게시물을 보내려고하지만 push (URL 연결에서 응답으로 코드 200 얻을 서버에 도달 결코).webservice by johnpet
-(void)webservice_Call
{
NSString *[email protected]"http://api.openweathermap.org/data/2.1/find/city?lat=10.369&lon=122.5896";
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:urlString]
cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData
timeoutInterval:10];
[request setHTTPMethod: @"GET"];
NSError *requestError;
NSURLResponse *urlResponse = nil;
NSData *response1 = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&requestError];
NSDictionary *resDictionary = [NSJSONSerialization JSONObjectWithData:response1 options:NSJSONReadingMutableContainers error:Nil];
}
지금 문제가 해결되었거나 도움이 필요하십니까 –
해결 됨, 감사합니다 –