title: UILabel Setting Transparent Background Color?
body: <p>I am looking to add a black label with a transparent background to my view (see below)</p>
  
  <pre><code>// ADD LABEL
  UILabel *label = [[UILabel alloc] init];
  [label setFrame:CGRectMake(124, 312, 72, 35)];
  [label setText:@"Yay!"];
  [label setTextAlignment:UITextAlignmentCenter];
  [[self view] addSubview:label];
  [label release];
  </code></pre>
  
  <p>When I add the label it always comes out black text on a white background. I have looked in the NIB and the only way I can see to make this work is set the background > color > opacity to 0, or in Xcode:</p>
  
  <pre><code>[label setBackgroundColor:[UIColor clearColor]];
  </code></pre>
  
  <p>Is this the right way to do this?</p>
  
  <p>Cheers Gary</p>