UITableViewController-Containment-Demo icon indicating copy to clipboard operation
UITableViewController-Containment-Demo copied to clipboard

This is a sample project showing how to contain a UITableViewController in another VC with a Search Bar + Display Controller working as if it were all in a UITableViewController.

Tables, Search Bars, and Containers, Oh My!

This project is a really simple example of combining View Controller Containment and a UITableViewController, all while maintaining the functionality of UISearchBar and UISearchDisplayController.

Working Demo

I've always struggled with getting this all to work properly and usually just default to having a UITableViewController manage everything. Doing this really limits what all you can do with your app's presentation and makes it harder to stand out from the crowd.

Thankfully, Krzysztof Zabłocki (Foldify and an awesome blog) stepped in and gave me some advice which got my gears turning.

Twitter to the rescue

Hopefully this project can help someone else who was stuck like I was, and I'm open to any contributions/suggestions!

Contact

License

See LICENSE.