I have to design a view controller that has top view controller and bottom view controller. And the root view of top view controller is UITableView. As we know, super view of UITableView is UIScrollView, so i want to modify the UITableView that when pull over 60px, it will show the bottom view controller. I have read the UITableView and UIScrollView class reference again and again, but can not find any solution for this. Does anyone know it? Thanks.

====================================================================================================================================================================
Implement UIScrollViewDelegate methods in your view controller (which contains UITableView):
- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate
{
if(self.tableView.contentOffset.y<-70)
{
// Write your code here (To load new view controller)
}
}
Hope this helps.
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