Thank you for answering.
As in the first answer (from @claude31) I uderstand it is not possible to change a value that is inside a class.
So does this also mean I need to do all the logic within the ViewController class?
From the second answer (from @OOPer) I can see that I can get rid of the "Top level expression not allowed" message.
But as soon as you try to call the function, you have the same problem again.
So here again that all the logic needs to be done within the ViewController class?
Just before I try out some things, is it possible for example to call a function outside de ViewController class, that returns value?
That value will then be used inside the ViewCntroller class to change the label.
There is no direct way by changing the label. Or is there? I mean, there is no direct way to say "let label="text""?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: