Xcode(一个标签中的多个字符串)
我有两个单独的字符串,我希望它们显示在同一个标签中。我如何使用 Xcode 做到这一点。
例如
第一个字符串称为answer1 第二个字符串称为answer2
我如何让我的标签同时显示
I have two separate strings and i want them displayed in the same label. How do i do that with Xcode.
for example
1st string is called answer1
2nd string is called answer2
how do i make my label display both
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
回答你的评论:
看看 NSString类参考即
stringByAppendingString:
answering on your comment:
have a look at the NSString Class Reference Namely
stringByAppendingString: