This is a Yelp search app using the Yelp API.
Time spent: 11 hours
- Search results page
- Table rows should be dynamic height according to the content height
- Custom cells should have the proper Auto Layout constraints
- Search bar should be in the navigation bar (doesn't have to expand to show location like the real Yelp app does).
- Filter page. Unfortunately, not all the filters are supported in the Yelp API.
- The filters you should actually have are: category, sort (best match, distance, highest rated), radius (meters), deals (on/off).
- The filters table should be organized into sections as in the mock.
- You can use the default UISwitch for on/off states. Optional: implement a custom switch
- Clicking on the "Search" button should dismiss the filters page and trigger the search w/ the new filter settings.
- Display some of the available Yelp categories (choose any 3-4 that you want).
NOTE: I don't think I got the filter page to look very good in the end :( The individual sections are just rows of settings, and while the "Sort By" & "Distance" settings are mutually exclusive, the table jumps a bit since I'm reloading the whole thing.
- Search results page
- Infinite scroll for restaurant results
- Implement map view of restaurant results
- Filter page
- Radius filter should expand as in the real Yelp app
- Categories should show a subset of the full list with a "See All" row to expand. Category list is here: http://www.yelp.com/developers/documentation/category_list (Links to an external site.)
- Implement the restaurant detail page.
I tried to play with different UITableView section/row configurations to implement the collapsed/selector-like views in the yelp app (http://i.imgur.com/rczfg7kl.png). Some ideas I came across involved creating custom rows, and inserting or reloading entire sections/rows upon interaction. I'd love to hear the best/recommended ways to implement these are.