I encountered the following problem: as soon as I add e.g. a UILabel to my UIScrollView - using the storyboard - the scroll view stops "working" (with that I mean you cannot scroll at all). However adding a subview programmatically the scroll view works fine but since I prefer designing my apps visually with storyboard I would like to solve this mysterious error.
Does anyone knows why this error is occurring? Thanks in advance :)
PS: I do set the contentSize of my scrollView, so this cannot be the problem!
Move the code in the viewDidAppear function like this
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated]; self.scrollView.contentSize = CGSizeMake(500.f, 500.f);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With