title: How to create a button programmatically?
body: <p>How do I programmatically create graphical elements (like a <code>UIButton</code>) in Swift? I tried to create and add button into a view, but wasn't able to.</p>