If you ask about this because you need to encode urls, use this
NSString* escapedUrlString = [unescapedString stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding];
If you just need a place for +, use
[str stringByReplacingOccurrencesOfString:@" " withString:@"+"];
source share