I would like to allow users of my app to search for images using a UISearchBar
above a UICollectionView
. According to my understanding, a UIColle
It is not mandatory to have UICollectionView
inside UICollectionViewController
. UICollectionView
is just like UITableView
and can be added anywhere. All you need to do is implement UICollectionViewDelegate
and UICollectionViewDataSource
protocols. You can follow following tutorial Supplementary Header and add search bar as a supplementary header of UICollectionView
.