title: Frame vs. center contradiction
body: <p>How is this possible? Shouldn't the following be true?</p>
  
  <pre><code>v.center == CGPointMake(v.frame.origin.x + v.frame.size.x/2), v.frame.origin.y + v.frame.size.y)/2)
  </code></pre>
  
  <p>And if so, then how do you explain this result I'm getting? Here is the code:</p>
  
  <pre><code>                 NSLog(@"sv    center: %@",NSStringFromCGPoint(sv.center));
                   NSLog(@"piece center: %@",NSStringFromCGPoint(piece.center));
                   NSLog(@"sv     frame: %@",NSStringFromCGRect(sv.frame));
                   NSLog(@"piece  frame: %@",NSStringFromCGRect(piece.frame));
  </code></pre>
  
  <p>There is no code between the NSLog statements that I omitted. I note that when I break right after this, po sv.superview and po piece.superview both return the same object. Anyway, the result of these statements is:</p>
  
  <pre><code>... sv    center: {228.934, 120.684}
  ... piece center: {124.28, 51.1536}
  ... sv     frame: {{2.52823, -9.70338}, {122.04, 122.04}}
  ... piece  frame: {{63.2595, -9.86644}, {122.04, 122.04}}
  </code></pre>
  
  <p>Doing the math, by the frames listed, I would expect the centers to be <code>{62.284115, 56.16831}</code> and <code>{92.64975, 56.08678}</code>, respectively. If I can't derive the center from the frame as just described, what else could I be missing?</p>
  
  <p>Here is the result from po sv.superview:</p>
  
  <p><code>3 = 0x1f8d0290 &lt;Palette: 0x1f8d0290; frame = (2.017e-05 1.64772e-06; 1024 748); transform = [2.39836, 0, 0, 2.39836, 0, 0]; tag = 42; layer = &lt;CALayer: 0x1f8b9b60&gt;&gt;</code></p>
  
  <p>Here is the result from po piece.superview:</p>
  
  <p><code>$2 = 0x1f8d0290 &lt;Palette: 0x1f8d0290; frame = (2.017e-05 1.64772e-06; 1024 748); transform = [2.39836, 0, 0, 2.39836, 0, 0]; tag = 42; layer = &lt;CALayer: 0x1f8b9b60&gt;&gt;</code></p>
  
  <p>Both piece and sv are of the same class, which is a subclass of UIImageView.</p>