title: how does frame of a UILabel gets changed on changing anchor point
body: <p>I have a UIView object with frame <code>(50, 50, 100, 100)</code>.
  on this view object, I am adding a label with frame <code>(50, 50, 50, 10)</code>
  Then I am changing the anchor point <code>from default</code> <code>(0.5, 0.5) to (1.0, 0.5)</code>
  But surprisingly, the frame gets changed after that. Below is the code snippet for the same</p>
  
  <pre><code>UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(rect.origin.x, rect.origin.y, rect.size.width/2, 10)];
  NSLog(@"Label frame for %d label before anchor point shift is %@", i, NSStringFromCGRect(label.frame));
  
  label.layer.anchorPoint = CGPointMake(1.0, 0.5);
  NSLog(@"Label frame for %d label after anchor point shift is %@", i, NSStringFromCGRect(label.frame));
  </code></pre>
  
  <p>Gives output :
  Label frame for 0 label before anchor point shift is {{50, 50}, {50, 10}}
  Label frame for 0 label after anchor point shift is {{25, 50}, {50, 10}}</p>