Quote:
Originally Posted by harrytheshark
I've thrown together a sample project.
Basically, you need to set the contentSize.
|
Wow, thanks for taking the time to make that very insightful example! Looking at IB more carefully, I found that I was setting the View Controller's main view to the scroll view... oops! But even after I had everything set up properly, things were strange. I eventually solved my specific problem with the following code:
Code:
[myScrollView setContentSize:CGSizeMake(320.0, 612.0)];
[myScrollView setClipsToBounds:YES];
[myScrollView setContentInset:UIEdgeInsetsMake(500.0, 0.0, 0.0, 0.0)];
[myScrollView setContentOffset:CGPointMake(0.0, -500.0)];
Any idea what could be happening here to cause me to need to use the content inset and offset? In any case, thank you very much for the help!!