scrollsToTop does not work correctly when using UIViewControllerContainment
| Originator: | kcharwood | ||
| Number: | rdar://13959988 | Date Originated: | 5/22/2013 |
| Status: | Resolved: | ||
| Product: | Product Version: | ||
| Classification: | Reproducible: |
Summary: scrollsToTop does not work as expected when using UIViewControllerContainment on iPhone. For example, lets say you have three child view controllers, two of which have their views set to hidden. If those views contain UIScrollView subviews, their scrollsToTop is still consulted, even though the parent view is marked as hidden. This prevents the visible UIScrollView from getting the scrollsToTop behavior. This is discussed in the following places: http://stackoverflow.com/questions/15974893/scrollstotop-not-working-with-uiviewcontroller-containment https://github.com/mutualmobile/MMDrawerController/issues/28 Steps to Reproduce: 1) Build a UIViewController Container that holds multiple View Controllers with scroll views 2) Set all but one of the child view controllers views to hidden 3) Observe the visible view controller does not get the scrollsToTopBehavior. Expected Results: If only one view is not hidden, scrollsToTop should work. Actual Results: scrollsToTop does not work. Regression: Notes: Interestingly this is not a problem on iPad, as it supports having multiple scroll views visible at one time.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!