I am using three20\'s URL navigator and I want to create a map as follows:
[map from:[Group class] name:@\"show\" toURL:@\"tt://group/(gid)/(name)\"];
You can start with
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
to get the url from the NSString.
Also, see here about URLencoding it with the proper escapes.