title: Need help properly positioning UIView in a UIView
body: <p>I made a UIView subclass (bowl) and when I try to make a bowl within a bowl and then center the inner one on the outer one's center it end up getting placed below and to the right of the center.  How would I properly center it?</p>
  
  <pre><code>- (id)initWithFrame:(CGRect)frame
  {
  self = [super initWithFrame:frame];
  if (self) {
      // Initialization code
      //CGColorRef lightGrayColor = [UIColor colorWithRed:230.0/255.0 green:230.0/255.0 blue:230.0/255.0 alpha:1.0].CGColor;
      self.userInteractionEnabled = YES;
      UIGestureRecognizer *twoFingerZ = [[UIPinchGestureRecognizer alloc] initWithTarget:self action:@selector(pinchZoom:)] ;
      [self addGestureRecognizer:twoFingerZ];
      UILabel *label = [[UILabel alloc] init];
      [label setFont:[UIFont fontWithName:@"Arial" size:64]];
      label.text = [NSString stringWithFormat:@"March"];
      [label sizeToFit];
      label.center = self.center;
      label.backgroundColor = [UIColor clearColor];
      label.textColor = [UIColor lightGrayColor];
      self.backgroundColor = [UIColor whiteColor];
      [self addSubview:label];
  }
  return self;
  }
  
  -(void)pinchZoom:(UIPinchGestureRecognizer *)recognizer
  {
  if([(UIPinchGestureRecognizer*)recognizer state] == UIGestureRecognizerStateEnded) {
  CGAffineTransform newForm = CGAffineTransformMakeScale(600/self.bounds.size.width, 600/self.bounds.size.height);
  
  [UIView beginAnimations:nil context:NULL];
  [UIView setAnimationDuration:0.5];
  [self setTransform:newForm];
      return;
  [UIView commitAnimations];
  }
  
  if([(UIPinchGestureRecognizer*)recognizer state] == UIGestureRecognizerStateBegan) {
      subClip = [[clipView alloc] initWithFrame:CGRectMake((self.center.x - ([delegate getSize:self].width/2)), (self.center.y - ([delegate getSize:self].height/2)), [delegate getSize:self].width, [delegate getSize:self].height)];
      subClip.transform = CGAffineTransformMakeScale(0.1, 0.1);
      [self addSubview:subClip];
  
      bowl *newB = [[bowl alloc] initWithFrame:CGRectMake(0, 0, 400, 400)];
      newB.center = self.center;
  // right here! *************
      [self addSubview:newB];
  }
  recognizer.view.transform = CGAffineTransformScale(recognizer.view.transform, recognizer.scale, recognizer.scale);
  recognizer.scale = 1;    
  }
  </code></pre>
  
  <p>EDIT: I fixed it.  Apparently the center value for a UIView isn't exactly what I thought it was (it looks like it's the position of the center in another view or something), so instead of newB.center = self.center, the right way to do it was newB.center = CGPointMake(self.frame.size.width/2, self.frame.size.height/2);</p>