title: Alternative to CGPathGetPathBoundingBox() for iPad (iOS 3.2)
body: <p>I'm trying to get my head around using QuartzCore to render semi-complex text/gradient/image UITableViewCell composites.  Thankfully, Opacity will let me visually build the view and then spit out source code to drop in to cocoa touch.  Trouble is, Opacity assumes the code is running on iOS 4, which is a problem if you want to draw Quartz views on an iPad.</p>
  
  <p>For me, the offending method is CGPathGetPathBoundingBox ... would someone mind pointing me to a suitable alternative or workaround to this (presumably simple) method?</p>
  
  <p>If you care to have some context (no pun intended), here you go:</p>
  
  <pre><code>transform = CGAffineTransformMakeRotation(1.571f);
  tempPath = CGPathCreateMutable();
  CGPathAddPath(tempPath, &amp;transform, path);
  pathBounds = CGPathGetPathBoundingBox(tempPath);
  point = pathBounds.origin;
  point2 = CGPointMake(CGRectGetMaxX(pathBounds), CGRectGetMinY(pathBounds));
  transform = CGAffineTransformInvert(transform);
  </code></pre>