title: Building UIButton With Border Initialization
body: <p>I'm trying to initialize a custom UIButton class, but I'm doing it wrong and not sure how to implement this. I built a custom UIButton class and initialized it in an IBOutlet. The button works fine but none of the properties that I set are displayed.</p>
  
  <pre><code>import UIKit
  import Foundation
  
  class WBCircleButton : UIButton {
  required init(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)
      self.layer.borderColor = UIColor.blueColor().CGColor
      self.layer.borderWidth = 2
      self.layer.cornerRadius = self.frame.size.width / 2
  
      }
  }
  
  class WBMainViewController: UIViewController {
  
  var timeControl = WBTimeController()
  
  var timer = NSTimer()
  
  @IBOutlet weak var timeDisplay: UILabel!
  
  //this doesn't work as expected ?????
  @IBOutlet weak var startButton: WBCircleButton!
  
  
  //********************************************
  @IBAction func startTimer(sender: AnyObject) {
  
      timeControl.startTimer()
  
      startButton.setTitle("Stop", forState: UIControlState.Normal)
  
      let aSelector: Selector = "updateTimerDisplay"
  
      timer = NSTimer.scheduledTimerWithTimeInterval(0.01, target: self, selector: aSelector, userInfo: nil, repeats: true)
  
  }
  
  
  //********************************************
  func updateTimerDisplay () {
      timeDisplay.text = timeControl.timeLabelText
  }
  
  //********************************************
  override func viewDidLoad() {
      super.viewDidLoad()
  
  }
  
  //********************************************
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  
  }
  </code></pre>