0
イメージのUICollectionView
を作成しています。私は細胞間の間隔を必要としません。私細胞は、このコードでコレクションビュー列の間隔は、画面サイズによって異なります。iOS
public override nfloat GetMinimumInteritemSpacingForSection(UICollectionView collectionView, UICollectionViewLayout layout, nint section)
{
return 0;
}
public override nfloat GetMinimumLineSpacingForSection(UICollectionView collectionView, UICollectionViewLayout layout, nint section)
{
return 0;
}
public override CoreGraphics.CGSize GetSizeForItem(UICollectionView collectionView, UICollectionViewLayout layout, Foundation.NSIndexPath indexPath)
{
if (UIScreen.MainScreen.Bounds.Size.Height > 567)
{
return new CoreGraphics.CGSize(100, 100);
}
else
{
return new CoreGraphics.CGSize(80, 80);
}
}
public override UIEdgeInsets GetInsetForSection(UICollectionView collectionView, UICollectionViewLayout layout, nint section)
{
return new UIEdgeInsets(10, 10, 10, 10);
}
iPhone 5S画面上正常に見えるが、私は病棟にiPhone 6の上にそれをテストする場合、細胞は、以下のようにそれらの間であまりにも多くのスペースを持っている - :これを取得するために私は次のようにします:
どのように私はこの問題を解決し、セル間まったくスペースを実現することはできませんか?
ありがとうございました。これは正確な問題でした:) –
歓迎の仲間は、喜んでそれが助け:) –