NSString *myString = @"just sample";
myString = [myString stringByAddingPercentEscapesUsingEncoding: NSASCIIStringEncoding];
NSLog(@"%@", myString); //output: just%20sample
How change string to URL format (percent escapes)
iPhone cocos2d Tips & Tricks
Labels:
iphone SDK