Try to pass my NSString
to a URLWithString
but no url appear:
//here i get my url from my API and replacing tags
NSString *queryContent = [[[(webLinks)[@"content"] stringByReplacingOccurrencesOfString:@"&" withString:@"&"]
stringByReplacingOccurrencesOfString:@"<p>" withString:@""]
stringByReplacingOccurrencesOfString:@"</p>" withString:@""];
//here i get the full url
NSURL * url = [NSURL URLWithString:queryContent];
Adding a NSLogs:
NSLog(@"query:%@", queryContent);
NSLog(@"website:%@", url);
and the result is this:
query:http://mywebsite.com
website:(null)
Whats wrong?
thanks
http://mywebsite
– BlackSheep Feb 05 '15 at 11:29