I have added a search bar in a SectionHeader cell from the UICollectionView.
Currently I'm hiding the view by moving the Y-offset up.
[self.collectionView setContentOffset:CGPointMake(0, 44)];
This works perfectly when the height of my offset is bigger than my view. (vertical scrollbar) But when the cells fit into my view, the search bar keeps still visible. (no vertical scrollbar)
Any idea?
Ty