ios - Fixed number of columns in UICollectionView -



ios - Fixed number of columns in UICollectionView -

i creating chess board , want utilize uicollectionview grid layout. problem is, don't know how set number of columns 8, create 8x8 grid.

i understand uicollectionviewdelegateflowlayout can implemented command size of items, question work across ios devices (iphone 4s - iphone 6+, ipads). have seen, looks need handle size of cells individually each device type.

uicollectionview set number of columns

is aware of improve solution problem?

i'd forget uicollectionview , go spritekit game. leave way more control. can add together game scene in "ordinary" ios app.

ios iphone uicollectionview

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -