0

Now I need my custom cells to display only 2 per row, am attempting to create a shopping cart view !? should I change numberOfSections !?

1 Answer 1

1

So I found the solution by implementing the follow within the UICollectionViewSource :

[Export ("collectionView:layout:sizeForItemAtIndexPath:"), CompilerGenerated]
public virtual CGSize GetSizeForItem (UICollectionView collectionView, UICollectionViewLayout layout, NSIndexPath indexPath)
{
    return new CGSize (width, height);
}

this lets you control your cell width.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.