How to combine two strings in Objective-C for an iPhone app

Viewed 39626

How can I combine "stringURL" and "stringSearch" together?

- (IBAction)search:(id)sender;{
stringURL = @"http://www.websitehere.com/index.php?s=";
stringSearch = search.text;
/* Something such as:
 stringURL_ = stringURL + stringSearch */
[web loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:stringURL_]]];
}
7 Answers
Related