小编Ada*_* U.的帖子

如何在Objective-C中为iPhone应用程序组合两个字符串

如何将"stringURL"和"stringSearch"组合在一起?

- (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_]]];
}
Run Code Online (Sandbox Code Playgroud)

iphone macos xcode objective-c

12
推荐指数
4
解决办法
4万
查看次数

标签 统计

iphone ×1

macos ×1

objective-c ×1

xcode ×1