【发布时间】:2016-01-15 10:14:18
【问题描述】:
我是初学者,我想通过按一个按钮在标签上打印一个数组。
我已经知道如何像这样在标签中放置一个字符串:
@IBAction func Start(sender: UIButton) {
label.text = "Insert Array"
但是我想插入我的函数而不是“插入数组”,它会在最后创建一个数组。 如果我插入数组,它会说:
使用未解析的标识符“数组”
我的代码在操场上完美运行。
【问题讨论】:
-
请出示您的
my function, which creates an Array at the end
标签: ios arrays swift button label