init(searchController:)
Initializes and returns a search container view controller with the specified search controller object.
Declaration
init(searchController: UISearchController)Parameters
- searchController:
The search controller managing the search results. This parameter must not be
nil.
Return Value
An initialized search container view controller.
Discussion
After initializing the search container view controller, embed it in your container view controller normally.