Create a button with a border:
var detailsButton = UIButton(frame: CGRect(x: 0, y: 0, width: 24, height: 24))
Use detailsButton.setTitle("...", forState: .Normal)to set the title.
You may also need to set a color for the text:
detailsButton.setTitleColor(UIColor.redColor(), forState: .Normal)
source
share