I’ve 3 tableviews in my view and I want to enable scroll to top feature for all tables at the same time, i.e., if the user taps on status bar all the three tables should be scrolled to top position.
I’ve tried using scrollsToTop property of all my tableViews and also various combinations of YES/No for this property. for example
table1.scrollsToTop = YES;
table2.scrollsToTop = NO;
table3.scrollsToTop = NO;
but not able to achieve this. Do we have any way out to get the event of tap on status bar so that I may try to set the content offset of all the tables to top position or any other work around.
Any help would be appreciated.
Solved this problem by overriding scrollViewShouldScrollToTop method like below, –