Shortcuts in Objective-C to concatenate NSStrings

前端 未结 30 2651
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 07:03

Are there any shortcuts to (stringByAppendingString:) string concatenation in Objective-C, or shortcuts for working with NSString in general?

30条回答
  •  -上瘾入骨i
    2020-11-22 08:04

    The only way to make c = [a stringByAppendingString: b] any shorter is to use autocomplete at around the st point. The + operator is part of C, which doesn't know about Objective-C objects.

提交回复
热议问题