objective c - Show items cells vertically in collection view iOS -


it's first time using collectionview. cells presented c1,c2,c3. want

c1

c2

c3

instead. there property position of cell or something. looks silly 1 couldn't figure out.

pls help.

you can change layout

      uicollectionviewflowlayout *layout;       layout = [[uicollectionviewflowlayout alloc] init];       layout.minimuminteritemspacing = 10;       layout.minimumlinespacing = 10;       layout.itemsize = cgsizemake(cgrectgetwidth(self.collectionview.frame), 60);       layout.sectioninset = uiedgeinsetsmake(30, 0, 10, 10);       [collectionview setcollectionviewlayout:layout animated:no];` 

Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -