如何将 2 个变量添加到 WKInterfaceLabel

How to add 2 variables into a WKInterfaceLabel

我想在 WatchKit 上的一个 WKInterfaceLabel 中添加一个字符串和一个整数。

整数像这样工作正常;

self.green.setText(String(greenSpaces))

我将如何添加这个字符串;

let greenStreet = "Green Street "

进入标签?谢谢!

建议使用字符串插值:

self.green.setText("\(greenSpaces) Green Street")