I have a UICollectionViewController
with the following layout:
So we have a CollectionView and a Header containing a Reusable View.
I implement the following method for the reusable view:
override x.GetViewForSupplementaryElement(collectionView : UICollectionView, elementKind : NSString, indexPath : NSIndexPath) =
let headerView = (collectionView.DequeueReusableSupplementaryView(elementKind,new NSString("HeaderView"),indexPath))
headerView
My only problem is, I do not want the header to scroll along with the UICollectionView
, I want it to stay in a fixed position at all times on top of the UICollectionView
. How can I achieve this?