try creating a separate line before adding to the url something like
NSSString *strURL=[NSString stringWithFormat:@"http://rate-exchange.appspot.com/currency?from=%@&to=%@&q=%@",strfrom,strto,strgo];
and then add this strURL to the url
NSURL *url = [NSURL URLWithString:strURL];
finally add it to the request, your code is incorrect when you add the URL for the request, the URL is not a string, it is a URL, so it should be requestWithURL not URLWithString , it should be like that
NSURLRequest *request = [NSURLRequest requestWithURL:url];
source share