var button = UIButton.new(); button.frame = {x:0, y:0, width:320, height:400}; button button.setTitleForState(UIColor.button)