UIScrollView Does not Scroll

Posted by paul simmons on Stack Overflow See other posts from Stack Overflow or by paul simmons
Published on 2010-04-30T13:13:05Z Indexed on 2010/04/30 13:17 UTC
Read the original article Hit count: 255

Filed under:

I have added a long info screen to my iPhone app. The info is a long UIImageView, and it is contained inside a UIScrollView. They are both defined in .xib file.

At run-time, initially I set scrollview's position outside window, and when user clicks a button, set its position inside window. This part is OK. But scrollview displays the image but does not scroll. Isn't it enough to place in MainViewContoller.xib, set the contained content, and (at code) set its contentSize equal to the content's size?

BTW: I try it at simulator currently.

© Stack Overflow or respective owner

Related posts about iphone-sdk