I know that setScrollsToTop gets confused when you have more than one scrollable view, but is there any way to fix this? Can you specify which view to scroll to top, thus clarifying it for the property?
Eg, I have myScrollView and myTableView in the view
How can I set it so only myTableView scrolls to top when the status bar is tapped?
Alternatively, is there a notification that goes off (or I can subscribe too) when the status bar is tapped?
Thanks in advance, I hope this makes sense!
Adding [scrollView setScrollsToTop:NO]
to all UIScrollViews that DO NOT need to scroll to top will also fix.
I also found turning off scrolling for all other scrollviews
eg
[myScrollView setScrollEnabled:NO]
will make it work again.
Just remember to turn scrolling off and on as needed.
If you don't want all your ScrollViews to behave the same way you need to create a new class and set it as the ScrollViews Delegate rather than your current view.
Then you can use all your delegate methods just for that Scrollview.
I solved the problem by using adding below line. i have Embed in UINavigationController to the specified tableviewController
problem :- Cant scroll top/down tableview cells while using ECSlidingViewController.
Solution :- [self.parentViewController.view addGestureRecognizer:self.slidingViewController.panGesture];
Its works for me.. I dont know whether it is right or wrong