Can anybody please tell me how to implement tap on status bar and table view should scroll to top. I also have another scroll view in that view controller for some different purpose.
Thanks in advance
If you are having more than one scrollview inside the viewcontroller, you set setScrollsToTop property to YES for the scrollview you want to scroll when user taps status bar. And also set that property to NO for all other scrollviews. If there is only one scrollview/tableview, You don't even need to do this. It will be set automatically.
[myScrollView setScrollsToTop:YES];
[otherScrollview setScrollsToTop:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With