I\'m building an app using swift in the latest version of Xcode 6, and would like to know how I can modify my button so that it can have a rounded border that I could adjust mys
It is globally method for rounded border of UIButton
class func setRoundedBorderButton(btn:UIButton) { btn.layer.cornerRadius = btn.frame.size.height/2 btn.layer.borderWidth = 0.5 btn.layer.borderColor = UIColor.darkGray.cgColor }