简体   繁体   中英

subview of uiscrollview not scrolling

i'm having a scrollview, it has A (UITableView) and B(UIView) as subviews. I've also provided the scroll.content size.

It is scrolling is possible when i do scroll from A and outside B.

Problem is with B, i'm unable to provide scroll. If i provide NO to user interaction enabled property of B, it is scrolling. How can i able to provide scroll on B with the property user interaction enabled as YES.

B view - has events to handle with..

Help me regarding this

its depend on the content size of the scrollview. so provide the content size like . scrollView.contentSize=CGSizeMake(0,A.frame.size.height+B.frame.size.height);

** Note: UITableView have a scroll attribute but UIView don't have scroll attribute, so UIView will scroll with UIScrollView only if added properly into UIScrollView.**

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM