Need help to replace my spaces from the textfield entry for posting to a GET
My current code:
NSString* urlString = [NSString stringWithFormat:@"http://server.com/ios/add.php?user=iPhone+App&message=%@", messageBox.text];
NSURL *add = [NSURL URLWithString:urlString];
[messageView loadRequest:[NSURLRequest requestWithURL:add]];
However I tried
NSString *finalAdd = [add stringByReplacingOccurrencesOfString:@" " withString:@"+"];