Monday, 22 September 2014

Scroll Two UITableView Simultaneously (UITableView Scrolling Synchronisation)

.m File
- (void)scrollViewDidScroll:(UIScrollView *)scrollView 
{
    if (scrollView == self.firstTable) 
{
        self.secondTable.contentOffset = scrollView.contentOffset;
    } 
else if (scrollView == self.secondTable) 
{
        self.firstTable.contentOffset = scrollView.contentOffset
    }
}

No comments: