문제

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!

도움이 되었습니까?

해결책 2

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.

다른 팁

Adding [scrollView setScrollsToTop:NO] to all UIScrollViews that DO NOT need to scroll to top will also fix.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top