{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/4976","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/4976/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/4976/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/4976/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/4976","id":100710823,"number":4976,"title":"13959988: scrollsToTop does not work correctly when using UIViewControllerContainment","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-13T08:02:30Z","updated_at":"2015-08-13T08:02:30Z","closed_at":null,"body":"#### Description\n\nSummary:\r\n\r\nscrollsToTop 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.\r\n\r\nThis is discussed in the following places:\r\nhttp://stackoverflow.com/questions/15974893/scrollstotop-not-working-with-uiviewcontroller-containment\r\nhttps://github.com/mutualmobile/MMDrawerController/issues/28\r\n\r\nSteps to Reproduce:\r\n1) Build a UIViewController Container that holds multiple View Controllers with scroll views\r\n2) Set all but one of the child view controllers views to hidden\r\n3) Observe the visible view controller does not get the scrollsToTopBehavior.\r\n\r\nExpected Results:\r\nIf only one view is not hidden, scrollsToTop should work.\r\n\r\nActual Results:\r\nscrollsToTop does not work.\r\n\r\nRegression:\r\n\r\nNotes:\r\nInterestingly this is not a problem on iPad, as it supports having multiple scroll views visible at one time.\n\n-\nProduct Version: \nCreated: 2013-05-22T13:43:11.962224\nOriginated: 2013-05-22T00:00:00\nOpen Radar Link: http://www.openradar.me/13959988"}}