title: UILabel subclass initialize with custom color
body: <p>My goal is to set the <code>textColor</code> of my custom <code>UILabel</code> subclass in my view controller. I have a <code>UILabel</code> subclass named <code>CircleLabel</code>. Here are the basics of it:</p>
  
  <pre><code>class CircleLabel: UILabel {
  
  required init(coder aDecoder: NSCoder) {
      super.init(coder: aDecoder)!
  }
  
  override init(frame: CGRect) {
      super.init(frame: frame)
  }
  
  override func drawRect(rect: CGRect) {
      self.layer.cornerRadius = self.bounds.width/2
      self.clipsToBounds = true
      super.drawRect(rect)
  }
  
  override func drawTextInRect(rect: CGRect) {
      self.textColor = UIColor.whiteColor()
      super.drawTextInRect(rect)
  }
  
  func setProperties(borderWidth: Float, borderColor: UIColor) {
      self.layer.borderWidth = CGFloat(borderWidth)
      self.layer.borderColor = borderColor.CGColor
  }
  </code></pre>
  
  <p>}</p>
  
  <p>As you can see, every CircleLabel I instantiate is defaulted to a textColor property of UIColor.whiteColor(), which works properly. In my view controller's viewDidLoad, I want to set my CircleLabel to have a dynamic <code>textColor</code> property. So something like this:</p>
  
  <pre><code>class myViewController: UIViewController {
      @IBOutlet weak var myCustomLabel: CircleLabel!
  
      override func viewDidLoad() {
          super.viewDidLoad()
          myCustomLabel.textColor = UIColor.blackColor()
  }
  </code></pre>
  
  <p>That doesn't work because <code>textColor</code> is set in the <code>drawRect</code> method of the <code>UILabel</code> subclass. What can I implement in my <code>CircleLabel</code> subclass (via a helper method like my setProperties helper method or some other way) that would allow me to set the <code>textColor</code> of my custom label in my view controller?</p>