title: CoreGraphics not working on iOS 7.0 simulator
body: <p>I've been struggling with this since the iOS 7 alpha. First I thought it was a bug on the alpha, but it's still happening, so I'm doing something wrong.</p>
  
  <p>All around the app I'm drawing stuff like cell backgrounds, and such with CG, but in iOS 7 it's not displayed.</p>
  
  <p>as an example:</p>
  
  <pre><code>@interface NewManagerCell : UITableViewCell
  @end
  
  @implementation NewManagerCell
  
  - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
      self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
      if (self) {
          //some initialization code here
      }
      return self;
  }
  - (void)drawRect:(CGRect)rect {
      CGContextRef context = UIGraphicsGetCurrentContext();
      CGRect bounds = self.bounds;
      bounds.origin.y += 5; //inter-cell spacing
      bounds.size.height -= 5;
  
      CGFloat mx = CGRectGetMinX(bounds);
      CGFloat Mx = CGRectGetMaxX(bounds);
      CGFloat my = CGRectGetMinY(bounds);
      CGFloat cy = CGRectGetMinY(bounds)+CGRectGetHeight(bounds)*.375;
      CGFloat My = CGRectGetMaxY(bounds);
  
      CGContextBeginPath(context);
  
      CGContextMoveToPoint(context, mx, cy);
      CGContextAddLineToPoint(context, mx+cy-my, my);
      CGContextAddLineToPoint(context, Mx-cy+my, my);
      CGContextAddLineToPoint(context, Mx, cy);
      CGContextAddLineToPoint(context, Mx, My);
      CGContextAddLineToPoint(context, mx, My);
      CGContextAddLineToPoint(context, mx, cy);
  
      CGContextSetFillColorWithColor(context, [[UIColor colorWithPatternImage:[UIImage imageNamed:@"cell-pattern"]] CGColor]);
      CGContextFillPath(context);
  
      mx += 4+CGRectGetWidth(bounds)/4-CGRectGetHeight(bounds)*.375/16;
      Mx -= 4;
      my += 4;
      My -= 4;
      cy += 2;
  
      CGMutablePathRef path = CGPathCreateMutable();
  
      CGContextBeginPath(context);
  
      CGPathMoveToPoint(path, &amp;CGAffineTransformIdentity, mx, my);
      CGPathAddLineToPoint(path, &amp;CGAffineTransformIdentity, Mx-(cy-my), my);
      CGPathAddLineToPoint(path, &amp;CGAffineTransformIdentity, Mx, cy);
      CGPathAddLineToPoint(path, &amp;CGAffineTransformIdentity, Mx, My);
      CGPathAddLineToPoint(path, &amp;CGAffineTransformIdentity, mx, My);
      CGPathAddLineToPoint(path, &amp;CGAffineTransformIdentity, mx, my);
  
      CGContextAddPath(context, path);
      CGContextSetRGBFillColor(context, 1, 1, 1, 1);
      CGContextFillPath(context);
  
      CGContextAddPath(context, path);
      CGContextSetRGBStrokeColor(context, .69, .69, .69, 1);
      CGContextStrokePath(context);
  
      CGPathRelease(path);
  }
  @end
  </code></pre>
  
  <p>That worked in any flavor of iOS prior to 7 and now stopped working. Does anybody have any clue about what's happening?</p>