So I've just started coding in Swift and am now trying to create a calculator which displays the number on top. To display the number I use an UILable and I then want to change its text to different numbers like this
however line three gives me the errors
so I'm missing something. The grey circle is filled on line one.
Thanks for any help!
With kind regards Karl
Code Block @IBOutlet weak var numberLable: UILabel! numberLable.text="\(number)"
however line three gives me the errors
Multiline Consecutive declarations on a line must be separated by ';'
Expected '(' in argument list of function declaration
Expected '{' in body of function declaration
Expected 'func' keyword in instance method declaration
Expected declaration
Invalid redeclaration of 'numberLable()'
so I'm missing something. The grey circle is filled on line one.
Thanks for any help!
With kind regards Karl