0

我试图弄清楚我认为简单的连接有什么问题,我必须在这里遗漏一些东西 - 请参见下面的代码:

NSString *combinedValues = [NSString stringWithFormat:
                            @"I am at %@" self.dancePlace.text
                            @" Airport, and I will arrive on %@" danceDateValue,
                            @" from %@" timeIn,
                            @" to %@" timeOut,
                            @" at Terminal %@" self.danceTerminal.text
                            @" Gate %@" self.danceGate.text];
4

1 回答 1

5

这是一个好方法

NSString *combinedValues = [NSString stringWithFormat:
                            @"I am at %@ Airport, and I will arrive on %@ from %@ to %@ at Terminal %@ Gate %@" , self.dancePlace.text, danceDateValue, timeIn, timeOut, self.danceTerminal.text, self.danceGate.text];
于 2013-10-22T10:22:07.597 回答