title: setAnchorPoint for UIImage?
body: <p>All,</p>
  
  <p>This is probably very basic, but I cannot find an answer that works for me.<br>
  Simple enough -- I want to rotate an image around an endpoint, not the center.  I know that all I really need is to be able to set the anchor point of the image and then apply the transform.  </p>
  
  <p>I cannot, however, figure out how to set the anchor point of the image (or should it be an UIImageView?)</p>
  
  <pre><code>UIImageView * imgv = nil;
  UIImage * image;
  
  imgv = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"greenbar.png"]];
  image = [imgv image];
  image.layer.anchorPoint =  CGPointMake(0.5, 1.0);***-- Request for member 'layer' in something not a structure or union.***
  imgv.image.layer.anchorPoint = CGPointMake(0.5, 1.0); ***-- Request for member 'layer' in something not a structure or union.***
  imgv.layer.anchorPoint = CGPointMake(0.5, 1.0);  ***-- Accessing unknown 'anchorPoint' component of a property.***
  </code></pre>
  
  <p>This is driving me crazy, so please help! :)</p>
  
  <p>Thank you!</p>
  
  <p>:bp:</p>