While integrating a UISearchBar is straightforward with a UITableView there are issues that can arise with both the placement of the search bar, and using it to search and filter UICollectionView cells.
Here’s a source code example submitted by Homam that shows how to create a UICollectionView with cells searchable using a UISearchBar with proper filtering and searching.
Here’s an image from the readme showing the example in action:
You can find the UICollectionViewController with UISearchBar example on Github here.
A nice example showing how to overcome a common issue.
Original article: Example: How To Integrate UICollectionView With UISearchBar
©2015 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.
