How to do an equivalent on php or perl's & in Objective-C
本问题已经有最佳答案,请猛点这里访问。
Possible Duplicate:
How do I concatenate strings in Objective-C?
我有这个:
1 | [NSURL URLWithString: @"http://myurlc.co.uk/?no="]] |
我基本上想这样做:
1 | [NSURL URLWithString: @"http://myurlc.co.uk/?no=" & tmpString]] |
在目标C中我该怎么做?
1 | [@"http://myurlc.co.uk/?no=" stringByAppendingString: tmpString] |
- nsstring
- 创建和转换字符串对象
看在Objective-C的快捷方式链接到nsstrings