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

后端 未结 7 1611
名媛妹妹
名媛妹妹 2020-12-31 10:21

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

- (IBAction)search:(id)sender;{
stringURL = @\"http://www.websitehere.com/index.php?s=\";
stri         


        
7条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-31 10:46

    I would not have given the answer of such general question. There are many answers of same type question have already given. First find the answer of your question from existing question.

    NSString* myURLString = [NSString stringWithFormat:@"http://www.websitehere.com/index.php?s=%@", search.text];
    

提交回复
热议问题