title: On iOS, drawRect cannot draw outside of the view's bounds?
body: <p>I thought from some point on for OS X, and always true for iOS, that content can appear outside of the view's bounds? (for UIView)  But if I create a brand new Single View app, and created a MyView class that subclasses UIView, and implement its drawRect:</p>
  
  <pre><code>- (void)drawRect:(CGRect)rect
  {
      // Drawing code
      UIBezierPath *path = [UIBezierPath bezierPathWithRect:
                                             CGRectMake(-20, -20, 600, 600)];
      [[UIColor greenColor] set];
      [path fill];
  
      CGContextRef context = UIGraphicsGetCurrentContext();
      CGContextSetFillColorWithColor(context, [[UIColor blueColor] CGColor]);
      CGContextFillRect(context, CGRectMake(-20, -20, 600, 600));
  }
  </code></pre>
  
  <p>I use both UI and CG to draw a rectangle each, just in case one works and the other doesn't.  And the view is added in <code>viewDidAppear</code>:</p>
  
  <pre><code>- (void)viewDidAppear:(BOOL)animated {
      MyView *myView = [[MyView alloc] initWithFrame:CGRectMake(20, 20, 260, 260)];
      [self.view addSubview:myView];
  }
  </code></pre>
  
  <p>But no matter what, the colored box won't go beyond the <code>(20, 20, 260, 260)</code> region.  Is it true that only the CALayers can be freely added and appear outside of a view's bounds?  Can it be because of the graphics context is limited to this <code>(20, 20, 260, 260)</code> to begin with?  If so, is there a way to make <code>drawRect</code> content appear outside of the view's bound, in all four top, down, left, right directions?</p>