SyntaxFix
Write A Post
Hire A Developer
Questions
The API hasn't changed - only the syntax has. You can make a UIButton and add it like this:
UIButton
var button = UIButton(frame: CGRectMake(0, 0, 50, 50)) self.view.addSubview(button) // assuming you're in a view controller