I want to create Custom UIButton with rectangular shape. for this I am using rectangular view as a Background for UIButton and making UIbuttons background colour as clearcolor.
button.layer.borderColor = UIColor.orangeColor().CGColor
swift example for orange border