I'd like to add a scrollview to my project.
I've added the following code in my file:
- (void)viewDidLoad
{
[super viewDidLoad];
[scrollView setScrollEnabled:YES];
[scrollView setContentSize: CGSizeMake(320, 830)];
}
This works good with xcode 4.3 und IOS 5. But know it doesn't scroll.
If I deactivate Auto Layout
in the file inspector it works perfect.
But the layout in for iPhone 4 with the smaller display is not correct. The layout in iPhone 5 looks good.
What should I do, when I want don't to enable Auto Layout
?