image http://i44.tinypic.com/14boqw7.png
above example of layout of how program should look. screen should have simple header view top , remaining space below used display other content. other content 3 pages of stuff. parent scrollview should display 1 page @ time can scroll left or right using paging other ones. problem each of these pages going have different heights. also, using paging in parent view, vertical scrolling gets paged think have assign scrollview each individual page, each paging disabled. process annoying autolayout because have manually calculate , overide intrinsiccontentsize every single view , make custom method in viewcontrollers return height based on intrinsic content sizes of children , constraints used on them. need use height constrain widths , heights of views container scrollviews able calculate contentsizes using autolayout. can stuff show using mess of container uiviews , uiscrollviews scrollview receives events parent scroll view. why child scroll views not responding?
i had similar issues nesting uiscrollviews. found video wwdc 2010 (link below) helped me understand how work child uiscrollviews inside paging uiscrollview, , managed fix bugs had following steps in video , looking @ sample code.
note: photoscroller code has been updated since video recorded support arc, storyboards , uipageviewcontroller. suggest taking @ sample code first, , if you're not sure how works watch video.
hope helps!
Comments
Post a Comment