1. Please use [code] tags around code when posting
2. The space character is not the only one that needs to be escaped. Check out stringByAddingPercentEscapesUsingEncoding method of NSString on how to do it properly.
3. What is this line supposed to do:
Code:
[NSString stringWithFormat:@"%d%%", 1];
4. Did you try to do some debugging to see why it doesn't work? For example print out the value of "url" (NSUrl object) to see if it gave you a valid object at all and so on.