https://github.com/robertomachorro/searchsample_ios
Sample for Proper use of UISearchController+Toolbar with UITableViewController within a Single View App on iOS.
https://github.com/robertomachorro/searchsample_ios
sample-app sample-code search-interface tableview
Last synced: 8 months ago
JSON representation
Sample for Proper use of UISearchController+Toolbar with UITableViewController within a Single View App on iOS.
- Host: GitHub
- URL: https://github.com/robertomachorro/searchsample_ios
- Owner: RobertoMachorro
- License: mit
- Created: 2018-03-26T00:04:41.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-29T17:19:10.000Z (about 8 years ago)
- Last Synced: 2025-07-02T17:06:40.146Z (12 months ago)
- Topics: sample-app, sample-code, search-interface, tableview
- Language: Objective-C
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# searchsample_ios
Sample for Proper use of UISearchController+Toolbar with UITableViewController within a Single View App on iOS.
It's a mouthful, but for most of my iOS projects, this has become a basic template, however, I wanted to build a clear startup code that had all platform kinks resolved and blessed by the Apple Support staff.
The code is self explanatory, however, it is recommended you review the commit history or the steps below in order to reproduce the desired results.
## Steps
1. This sample code starts from an Xcode iOS new project template for a *Single View App*.
2. The code is cleaned up and standardized.
3. The basic view is swapped for a Table View Controller.
4. A custom Cell is setup with labels for output.
5. A custom Table View Controller class is created for the prior view, with randomized data.
6. Data is formatted and presented on the table view.
7. Search controller functionality is implemented via delegation and UISearchController.
8. Embedded Table View Controller into Navigation Controller.
9. Activated toolbar in Navigation Controller.
10. Enabled hiding search bar option when scrolling.
11. Added compatibility accross iOS versions.
**PENDING:** Toolbar visibility when soft-keyboard is enabled.