i made iPad application, i want to fetch data from this url,
http://ipad.idealake.com/stockquote.aspx?id=SBIN
and i want to store this data into string,
so i written this, but it doesn’t take data into the string,
NSURL *urlq=[NSURL URLWithString:str1];
NSURLRequest *reqq=[NSURLRequest requestWithURL:urlq];
[webViewq loadRequest:reqq];
mainstr=[[NSMutableString alloc] initWithContentsOfURL:urlq encoding:NSUTF32StringEncoding error:NULL];
NSLog(@"WHOLE STRING=%@",mainstr);
output of log is: WHOLE STRING=NULL
am i doing any mistake in this code ?
Thanks In Advance !!
1 Answer