title: UIBezierPath simple rectangle
body: <p>I just want to draw a simple rectangle to a view using the following function:</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect {
      [super drawRect:rect];
      if (self.drawTextBouble) {
          [[UIColor blueColor] setFill];
          UIBezierPath *aPath = [UIBezierPath bezierPathWithRoundedRect:CGRectMake(40, 0, 230, 120) cornerRadius:12.0];
          [aPath fill];
      }
  }
  </code></pre>
  
  <p>The code above fills the view with plain black background, outside the rectangle is not transparent. How can I fix this?</p>
  
  <p>Edit:</p>
  
  <p>The solution below is working, but this is working also:</p>
  
  <pre><code>[self setOpaque:NO];
  </code></pre>