title: Fill an UIBezierPath with a UIImage
body: <p>I got an UIBezierpath with a circle shape:</p>
  <pre><code>UIBezierPath *path = [UIBezierPath bezierPathWithRoundedRect:rect cornerRadius:100];
  </code></pre>
  <p>But then i want to fill the circle with an UIImage (show only a portion of the image which is inside the circle)</p>
  <p>Best Regards
  Kristian</p>
  <h1>Edit:</h1>
  <p>Thanks to Daniel and Dave for excellent answers :D saved me a lot of trouble ;D</p>
  <p>The solutions:</p>
  <pre><code>CGContextRef ctx = UIGraphicsGetCurrentContext();
  CGContextAddPath(ctx, path.CGPath);
  CGContextClip(ctx);
  </code></pre>
  <p>and:</p>
  <pre><code>path.addClip;
  </code></pre>
  <p>Both works perfectly but i ended up using the last method (by Dave) because it required less code.</p>