I had this same functionality in an app, but instead of a horizontal UITableView
i had a UICollectionView
the tableview was vertical and the collection view was horizontal. The functionality is nearly the same. You just have to set the property of the UICollectionView
's layout object to be horizontal. In the storyboard, in the sub options of a UICollectionView
is a golden cube which is the UICollectionViewFlowLayout
object. You can select that and it contains a scrollDirection
property to which you can set to either horizontal or vertical.
At any time i was able to pan-gesture vertically or horizontally and there was no problem, i was able to scroll what i wanted to scroll.