Cant open XML from server in ios app but works fine in browser -
hello working on web services related project.data can seen if use given url along key in browser,but not able data in program(not parsing want entire data seen).please ?i have tried url , without url in project .code im using given below. nsstring *url = @"http:my link";
nsurl* url = [nsurl urlwithstring:url]; nsurlrequest *request = [nsurlrequest requestwithurl:url]; nshttpurlresponse * urlresponse =nil; nserror *error;// = [[nserror alloc] init]; nsdata *responsedata = [nsurlconnection sendsynchronousrequest:request returningresponse:&urlresponse error:&error]; nslog(@"data=%@",responsedata); nsstring *result = [[nsstring alloc] initwithdata:responsedata encoding:nsutf8stringencoding]; nslog(@"result %@",result);
Comments
Post a Comment