0

How to use both vertical and horizontal ScrollView in Xamarin iOS ?

I am using CollectionView but with it I only get one scrollview working at a time.

Louis 'LYRO' Dupont
  • 1,052
  • 4
  • 15
  • 35

1 Answers1

0

It's because it's nature of collection view, you can make it scroll in one direction at a time i.e. either horizontal or vertical. What you exactly want to achieve that you have not mentioned. if you are going to use collection view inside the scroll view, you have to manage it properly.

The best solution would be use a UICollectionView for the horizontal scroll and the UITableView for the vertical scroll.

But if you want to make it work only using UICollectionView you have to use Subclassing UICollectionViewLayout.

here is link you can refer to make it work, hope this might help you:

1.https://www.brightec.co.uk/ideas/uicollectionview-using-horizontal-and-vertical-scrolling-sticky-rows-and-columns

2.Subclassing UICollectionView

3.UICollectionView scrolling in both directions

Divyesh
  • 2,085
  • 20
  • 35