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
Post a Comment