I tried finding this question for a while but could not find this problem\'s answer.
My problem is that i have a UICollectionView
and the Scroll Direction is
Xamarin.iOS:
You can override DecelerationEnded
method of UICollectionViewDelegate
or subscribe to DecelerationEnded
event of UICollectionView
(custom delegate will be used under the hood).
public override void DecelerationEnded(UIScrollView scrollView)
{
var x = scrollView.ContentOffset.X;
var w = scrollView.Bounds.Size.Width;
var currentPage = Math.Ceiling(x / w);
// use currentPage here
}