Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 11 December 2023
Sometimes we need to use search suggestions within the same page that will show over the current screen for that we can use UISearchController with one Target Controller, for this follow these steps.
Here we are taking 2 controllers where one controller loads another controller over the screen.
Create A UIview On controller & create their outlet.
Now write this code on ViewDidLoad()
Note: here “TableViewControllerClass” is another UITableViewController class that will load when the user clicks on the search bar.
Note: ” func updateSearchResults(for searchController: UISearchController)” this method will call every time when the user clicks on search bar & type on search bar so this method will help to reload the data or update the data in that controller.
View More
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.