I added a scrollview to my view and added the following code in my viewDidLoad-Method:
[scroller setScrollEnabled:YES];
[scroller setContentSize:CGSizeMake(320, 600)];
When i start the app with my empty scrollview i can scroll and also see the scrollbars, but when i add a label to the scrollview i can not scroll anymore and can´t see the scrollbars.
The problem is only when i add the label with the designer. Adding the label in the code works, like this example:
[scroller setScrollEnabled:YES];
[scroller setContentSize:CGSizeMake(320, 600)];
UILabel *myLabel = [[UILabel alloc] initWithFrame:CGRectMake(50, 100, 200, 100)];
myLabel.text = @"My Label";
[scroller addSubview:myLabel];
Any ideas?