I have a horizontal UITableView
with pagination enabled, and vertical UITableView
within horizontal tableView. Its working fine in less than iOS 7 and not properly working in iOS 7.x.
The problem is, user can not scroll vertically, because somehow horizontal (Outer UITableView
) scrolling has higher priority than vertical (inner UITableView
) scrolling. How I can disable Outer UTableView
scrolling when user scrolls vertical and vice versa
I set the directionalLockEnabled property as YES, but not resolved.
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.