tags:

views:

23

answers:

1

I have a UIScrollView containing a UIView in Interface Builder. In the running application, even though the view is larger than the scrollView, when I pan the scrollView, it always bounces back to the origin. Until, that is, I zoom the scrollView with a pinch gesture. Afterwards the panning leaves the contained view in a correct state.

Am I missing some setting about pan/zoom in the scrollView, or a contentOffset setting? I cannot figure out what changes about the scroolView from before zooming to after zooming that makes it work as desired after but not before. Anyone who has solved this issue, thank you!

A: 

I walked away from this for a few days and have been revisiting it this weekend but still have not figured out what variable is changing. It seems like the scrollView "remembers" that the content origin is in the top left until the view's size changes. However, changing the contentSize manualy before loading doesn't seem to trigger the correct behavior. Will keep posted.

SG1