title: How can I add a search bar above a UICollectionView?
body: <p>I would like to allow users of my app to search for images using a <code>UISearchBar</code> above a <code>UICollectionView</code>. According to my understanding, a <code>UICollectionView</code> must be in a <code>UICollectionViewController</code> to work properly. However, Xcode won't let me put a search bar in a <code>UICollectionViewController</code>. I also can't use a generic <code>UIViewController</code> as the collection view won't work properly. How can I achieve the functionality that I want?</p>