【问题标题】:Put in string int and text [closed]放入字符串 int 和 text [关闭]
【发布时间】:2013-07-01 13:15:00
【问题描述】:

我想输入字符串 int 和 text。

我有这个代码:chipsS = [NSString stringWithFormat:@"%i", chips];

怎么办?

【问题讨论】:

  • 您需要什么输出?因为你写的那行是对的,那么你面临的问题是什么?
  • 你要放对不起什么吗?谁?在哪里?嗯?

标签: objective-c stringwithformat


【解决方案1】:

stringVariable = [NSString stringWithFormat:@"%i - %@", intVariable, stringVariable];

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-05-13
    • 2014-06-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-07-16
    • 2021-12-05
    • 2013-11-21
    相关资源
    最近更新 更多