Concatenate int and string
问题 How can I concatenate an int (e.g: 4 ) and a string (e.g: @"/12" ) for printing? I'm okay with casting the int it to an NSString format, but I don't know how I can add @"/12" after the int's value. 回答1: I don't get your question, but I think you mean something like this: ...[NSString stringWithFormat:@"%d/12", intValue] 来源: https://stackoverflow.com/questions/5884367/concatenate-int-and-string