Question

I've a problem using a UIScrollView with subviews and vertical scrolling.

When in portrait mode it scrolls fine, but when in landscape, even if I set an arbitrary value (let's say 1400px), it doesn't really scroll along that size, removing around 400 pixels and it stops before the content is fully visible.

Any ideas?

Était-ce utile?

La solution

Did you try to set

yourScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

It should resize the scrollview height.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top