The idea is to have a search view in the UICollectionView and still be able to use pull to update using the UIRefreshControl. Search and UIRefreshControl will not be displayed until the user scrolls through the UICollectionView list.
------------------ | Pull To Refresh | ------------------ | Search | ------------------ <--- Above of this line the content is hidden | A | B | ------------------ | C | D | ------------------ | Footer | ------------------
I tried to implement SearchView in the header of the UICollectionView section, but this way I cannot use reloadData, while the collection view cell is the first responder.
A good solution should make it possible:
- Refresh the CollectionView data source as the user types in the search field
- Do not mix UIRefreshControl animation
ios objective-c uicollectionview
Giuseppe
source share