The main view (the one shown at launch) for my application is an UIScrollView that contains an UIView. To organize my nibs I'm using this method and everything works fine.
However, when calling scrollRectToVisible:animated
in ViewDidLoad
in the main view controller (having already set the scrollView's content size) the scrollView doesn't scroll to the indicated CGRect.
There are two strange factors to consider:
The scrollView scrolls as expected on iOS 6 (the problem exposed presents itself on iOS 5).
If I call the code to scroll with a 2 sec delay the scroll happens.