title: UILabel subclass doesn't show text
body: <p>I've subclassed UILabel class to override <code>drawRect:</code> method. The label in IB is connected with the created subclass. It appears on the screen, but it doesn't show any text, whether it it is set in IB or programmatically. The label itself appears on the screen, when I'm logging it's <code>text</code> property, it shows OK.</p>
  
  <p>Here's my code:</p>
  
  <p>MyLabel.h</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  @interface MyLabel : UILabel
  @end
  </code></pre>
  
  <p>MyLabel.m</p>
  
  <pre><code>#import "MyLabel.h"
  #import &lt;QuartzCore/QuartzCore.h&gt;
  
  @implementation MyLabel
  
  
  - (void)drawRect:(CGRect)rect {
      CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
      CGContextRef context = UIGraphicsGetCurrentContext();
  
      UIColor *borderColor = [UIColor colorWithWhite: .1f alpha: 5.f];
      UIColor *topColor = [UIColor colorWithWhite: .3f alpha: 5.f];
      UIColor *bottomColor = [UIColor colorWithWhite: .5f alpha: 5.f];
      UIColor *innerGlow = [UIColor colorWithWhite: 1.f alpha: .25f];
  
      NSArray *gradientColors = @[(id)topColor.CGColor, (id)bottomColor.CGColor];
      CGGradientRef gradient = CGGradientCreateWithColors(colorSpace, (__bridge CFArrayRef) gradientColors,  NULL);
  
      CGFloat bWidth = self.frame.size.width;
      CGFloat bHeight = self.frame.size.height;
  
      UIBezierPath *roundedRectanglePath = [UIBezierPath bezierPathWithRoundedRect:    CGRectMake(0, 0, bWidth, bHeight)
                                                                  cornerRadius: 0];
      [roundedRectanglePath addClip];
  
      CGGradientRef background = gradient;
  
      CGContextDrawLinearGradient(context, background, CGPointMake(bWidth / 2.f, 0), CGPointMake(bWidth / 2.f, bHeight), 0);
  
      [borderColor setStroke];
      roundedRectanglePath.lineWidth = 6;
      [roundedRectanglePath stroke];
  
      CGFloat glowRadius = 3.f;
      UIBezierPath *innerGlowRect = [UIBezierPath bezierPathWithRoundedRect: CGRectMake(glowRadius, glowRadius, bWidth - 2 * glowRadius, bHeight - 2 * glowRadius)   cornerRadius: 0];
      [innerGlow setStroke];
      innerGlowRect.lineWidth = 3;
      [innerGlowRect stroke];
  
      CGGradientRelease(gradient);
      CGColorSpaceRelease(colorSpace);
  }
  
  @end
  </code></pre>
  
  <p>Maybe I need to override <code>drawTextInRect:</code> method, but I don't know how.
  Thanks for help!</p>