It also happened to me - it seems that when the view is loaded from the nib file, some resizing occurs after viewDidLoad and even after viewWillAppear. The call stack shows that it is being resized using OldSuperviewSize, which does this
#0 0x0000f040 in -[ScrollView setContentSize:] at .../ScrollView.m:49
I have not yet found a suitable solution, besides setting contentSize later by calling the function performSelector: withObject: afterDelay
-(void)viewDidLoad { [self performSelector:@selector(adjustScrollViewContentSize) withObject:nil afterDelay:0.1]; } -(void)adjustScrollViewContentSize { _scrollView.contentSize = CGSizeMake(4000, 4000); }
source share