How can I combine \"stringURL\" and \"stringSearch\" together?
- (IBAction)search:(id)sender;{
stringURL = @\"http://www.websitehere.com/index.php?s=\";
stri
Philippe gave a good example.
You can also use plain stringWithFormat
: method.
NSString *combined = [NSString stringWithFormat:@"%@%@", stringURL, stringSearch];
This way you can manipulate string even more by putting somethig inbetween the strings like:
NSString *combined = [NSString stringWithFormat:@"%@/someMethod.php?%@", stringURL, stringSearch];