Answers for "how to create button action programmatically in ios"

0

how to create button action programmatically in ios

let button   = UIButton(type: UIButtonType.System) as UIButton
button.frame = CGRectMake(100, 100, 100, 50)
button.backgroundColor = UIColor.greenColor()
button.setTitle("Test Button", forState: UIControlState.Normal)
self.view.addSubview(button)
Posted by: Guest on December-17-2021

Code answers related to "how to create button action programmatically in ios"

Code answers related to "Swift"

Browse Popular Code Answers by Language