I have a situation where I need to create a URL with a string containing ".
For instance:
NSString *myStringWithURL = [NSString stringWithFormat:
@"http://myurl.com/setParam.php?setName=
{\"name\":\"%@\"} ", name];
NSURL *targetURL = [NSURL URLWithString : myStringWithURL];
So the question is, how do I make my URL not return null?
The {"name": "My Name"} part should be JSON, but it seemed easier than using an NSDictionary and then using a JSON parser, etc.
I really thank you for your help!
source
share