title: How control autosizing of object without IB?
body: <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
  
      return YES;
  
  }
  
  - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
  
      [self positionViews];  
  
  }
  
  
  -(void)positionViews {
  
      UIInterfaceOrientation destOrientation = self.interfaceOrientation;
      if (destOrientation == UIInterfaceOrientationPortrait ||
          destOrientation == UIInterfaceOrientationPortraitUpsideDown) {
  
          [bLabel setFrame:CGRectMake(255, 10, 270, 60)];
  
      } else { 
  
  
          [bLabel setFrame:CGRectMake(377, 10, 270, 60)];
  
      }   
  }
  </code></pre>
  
  <p><code>bLabel</code> is Cutomed Object.</p>
  
  <p>When IPad(device) rotates, <code>bLable</code> is rotated. 
  But appear time lag.
  So rotation motion is not smooth.</p>
  
  <p>What is my code's faults?
  How control autosizing of object without IB naturally?</p>
  
  <p>Please tell me your advice. Thanks!!! </p>
  
  <p><img src="https://i.stack.imgur.com/HZ7L8.png" alt="enter image description here"></p>