开发者

UIScrollView doesn't work first time but works fine second... Objective C

I am using a UIScrollView to show a larger amount of text and images. I haven't done any bigger changes in setting, i build everthing in interface builder (Xcode 4). I have set the content insets to 1370 on botton, because of my view.

The problem is when I start the application and I go to the view with a scrollView, nothing appear in the scrollView, but if I go back and then go to the view with a scrollView again then it appear as I w开发者_StackOverflow社区ant... :/

If I don't set the content insets, it works great BUT then it doesn't scroll down so it only show what fits inside the view.

Is it any smarter way to combine large amount of text and images?

Thanks!


Make sure that whenever you are moving to next i.e on scrollView at that time does your array have the data? Just cross check it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜