I want to put in string int and text.

I have this code: chipsS = [NSString stringWithFormat:@"%i", chips];

What to do?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top