In your setup_label
method, you're accepting the following arguments, frame
, bgcolor
and text
where your text
argument suppose to be a String object.
Therefore, your viewDidLoad
method should be the following
def viewDidLoad
@name_label = setup_label [[10, 10], [300, 50]], UIColor.orangeColor, "Name"
@place_label = setup_label [[10, 80], [300, 50]], UIColor.yellowColor, "Place"
@temp_label = setup_label [[10, 150], [300, 50]], UIColor.greenColor, "Temperature"
end