title: Why a frame of a UIView is not updating in ViewDidLayoutSubviews?
body: <p>I am trying to update the frame of a <code>UIView</code> which contains buttons and labels inside. I am trying to update it in <code>viewDidLayoutSubviews</code> (and I also tried in <code>viewDidLoad</code>, <code>viewWillAppear</code>, <code>viewDidAppear</code>..). I want to change the y position (origin.y) of the view. 
  The NSLogs says my original y position is 334, and after changing, it is 100. However, the position does not change in my view. I have already checked that the view is connected in the storyboard. What am I doing wrong?</p>
  
  <pre><code>-(void)viewDidLayoutSubviews
  {
      [super viewDidLayoutSubviews];
      CGRect theFrame  = [self.bottomView frame];
      NSLog(@"Y position bottomview: %f", self.bottomView.frame.origin.y);
  
      if([[UIScreen mainScreen] bounds].size.height == 568) //iPhone 4inch
      {
         // NSLog(@"iphone5");
      }
      else{
         // NSLog(@"iphone4");
          theFrame .origin.y =  100;
      }
  
      self.bottomView.frame = theFrame;
      NSLog(@"Y position bottomview after changing it: %f", self.bottomView.frame.origin.y);
      [self.view layoutIfNeeded];
  }
  </code></pre>