Objective-C字符串连接
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Objective-C字符串连接相关的知识,希望对你有一定的参考价值。
This is all about appending strings.
/* append to a mutable string */ [aString appendString:@" you can't have any pudding."]; [bString1 appendFormat:@" %@", bString2]; /* concatenate 2 strings to make a 3rd */ /* assigning an appended string back to itself */ string1 = [string1 stringByAppendingString:string2];
以上是关于Objective-C字符串连接的主要内容,如果未能解决你的问题,请参考以下文章
将 NSData Objective-C 代码转换为 Swift 时遇到问题