Drag Button to ViewController.swift to change to Action and
@IBAction functappedButton (sender:Any-Object){}
A program called
Then write label.text="Welcome"
in {}
of the taggedButton method and
When I try to start the simulator, I get an error saying postfix is reserved.
Is there no space between label.
and text
?
question code
label.text="Welcome"
Correct Code
label.text="Welcome"
This post was posted as a community wiki based on @ita_3y's comments.
© 2024 OneMinuteCode. All rights reserved.