可能重复: 如何在Objective-C中连接字符串?
大家好,我是Objc的新手,我想将Integer值的字符串与字符串值连接起来。这是我的代码:
[runtime setText:[NSString stringWithFormat:@"%@",self.movie.runtime]];
其结果将是:120
我希望连接字符串的结果是:120分钟。
请分享给我。谢谢
cocoa objective-c
cocoa ×1
objective-c ×1