mutualmobile / MMDrawerController

A lightweight, easy to use, Side Drawer Navigation Controller
MIT License
6.76k stars 1.38k forks source link

UIStatusBar tap-to-scroll-to-top not functional #108

Closed runmad closed 11 years ago

runmad commented 11 years ago

I've just noticed that the tap gesture on a UIStatusBar is no longer functional. I thought it was part of a bug in 0.5.0, but oddly I now cannot get the gesture to work for UIScrollView subclasses (such as a UITableView) to scroll to the top in 0.4.0.

Did anything change with setting the child view controller? There might be an issue related to having several view controllers with subviews that adhere to scrollToTop and if more than one does so it won't actually do anything to any of them.

ArtFeel commented 11 years ago

Only one UIScrollView can be scrolled to the top, so just set scrollsToTop property of the UITableView in centerViewController to YES (which is the default), and set scrollsToTop property of other UIScrollViews (left/rightViewControllers) to NO. That’s it!