开发者

problem with scrollview

开发者 https://www.devze.com 2023-01-01 23:44 出处:网络
I am having view this comes from push view contr开发者_运维技巧oller through navigation.this view has scroll view,when i run the project view is not scrolling.how do i make it scroll.You need to set c

I am having view this comes from push view contr开发者_运维技巧oller through navigation.this view has scroll view,when i run the project view is not scrolling.how do i make it scroll.


You need to set content size for that view.

scrollView.contentSize = CGSizeMake(scrollView.frame.size.width,TOTAL_HEIGHT_TO_DISPLAY_CONTENT);

Hope this helps.

Jim.


Did you set the content size of the scroll view? Set it to the size of what the scroll view contains.

0

精彩评论

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