IPhone : Hide Part from UICollectionview

on Friday, March 27, 2015

So i have a UIView with blue background and a uicollectionview that have 3 cells in each row with the cells background colour set to blue and the UICollectionview background set to black , imagine this scenario where i have 4 cells , the first 3 cells will fill the first row and the fourth cell will be the only cell in the second row and here comes the problem the rest of the second row will be black (the UICollectionview background ) what if i wanted the rest of the second row to have the same colour as the cell and the UIView background colour (blue) but in the same time i want to keep the background colour of the UICollectionview as it as in order to keep the cell separators black is there a way to hide the part of the UICollectionview that has no cells in it ??


0 comments:

Post a Comment