I am a beginner and I'd like to print an array on a label by pressing a button.
I already know how to put a String in the label like this:
@IBAction func Start(sender: UIButton) {
label.text = "Insert Array"
But instead of "Insert Array" I want to insert my function, which creates an Array at the end. If I insert the Array, it says:
use of unresolved identifier 'array'
My code works perfectly in the playground.
my function, which creates an Array at the end