UICollectionViewDelegateFlowLayout has a method called sizeForItem (GetSizeForItem in MonoTouch).
But I'm not providing the delegate explicitly—instead, I'm inheriting from UICollectionViewController.
It mixes data source ands delegate functionality but doesn't have this method to override.
I tried adding this to my controller:
[Export ("collectionView:layout:sizeForItemAtIndexPath:")]
public virtual SizeF GetSizeForItem (UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath indexPath)
{
return new SizeF (100, 100);
}
and it was never called.
How do I provide this method without resorting to separating delegate and data source?