How can I combine \"stringURL\" and \"stringSearch\" together?
- (IBAction)search:(id)sender;{
stringURL = @\"http://www.websitehere.com/index.php?s=\";
stri
Instead of stringByAppendingString:, you could also use
NSString *combined = [NSString stringWithFormat: @"%@%@",
stringURL, stringSearch];
This is especially interesting/convenient if you have more than one string to append. Otherwise, the stringbyAppendingString: method is probably the better choice.