标签: objective-c stringwithformat
我想放入字符串int和text。
我有这段代码:chipsS = [NSString stringWithFormat:@"%i", chips];
chipsS = [NSString stringWithFormat:@"%i", chips];
怎么办?
答案 0 :(得分:0)
stringVariable = [NSString stringWithFormat:@"%i - %@", intVariable, stringVariable];