title: centering a CGRect in a view
body: <p>I have an image displaying in a CGRect. how do I center the rect in the view?</p>
  
  <p>here's my code:</p>
  
  <pre><code>UIImage * image = [UIImage imageNamed:place.image];
  CGRect rect = CGRectMake(10.0f, 90.0f, image.size.width, image.size.height);
  
  UIImageView * imageView = [[UIImageView alloc] initWithFrame:rect];
  [imageView setImage:image];
  </code></pre>
  
  <p>I've tried <strong>imageView.center</strong> but to no effect.</p>
  
  <p>thanks in advance.</p>