appendFormat

可以使用appendString或appendFormat来对可变字符串操作:

  - (void)appendString: (Nsstring *) aString;

  -  (void) appendFormat: (NSString *) Format;

appendString 接受参数aString,然后将其复制到接受对象的末尾。

appendFormat类似,他将格式化的字符串附加在接受对象的末尾,而不是创建新的对象。

原文地址:https://www.cnblogs.com/guligei/p/3340511.html