Linked collection and table scrolling
A contacts screen in code review. A horizontally scrolling UICollectionView of letter indexes sits on top, a sectioned UITableView of contacts below; scrolling the table should select the matching index on top, and tapping an index should scroll the table to that section. How would you find and fix the bug where the two directions trigger each other and bounce back and forth forever?