UIScrollView not moving <p>I am trying to scroll the view up when the keyboard covers a "textfield". I have a setter to determine which "textfield" is active (as Apple's documentation instructed). When I try to use method "scrollRectToVisible" nothing happens. I used <code>NSLog</code> to test when the view should and shouldn't move. The rest of the program seems to work fine. I don't understand what I did wrong. Could this be caused by using storyboard with auto layout enabled?</p> <pre><code>if (!CGRectContainsPoint(aRect, activeField.frame.origin) ) { [self.scrollView scrollRectToVisible:activeField.frame animated:YES]; //not working NSLog(@"View Should Move"); } </code></pre> <p>Thanks</p>