【发布时间】:2014-11-17 06:14:51
【问题描述】:
我需要附加一个字符串数组,最后得到一个字符串以以下格式显示在UILabel中。
动作1 |行动2 |行动3 |行动4
for action in actions {
actionLabel.text += "\(action.name) |"
}
这给了我以下错误。
'String?' is not identical to 'UInt8'.
这个错误有什么原因吗?有没有其他方法可以做到这一点?
谢谢。
【问题讨论】:
标签: ios arrays string swift append