D
D
David Koifman2017-08-11 14:18:26
iOS
David Koifman, 2017-08-11 14:18:26

How to make searchBar work in two TableViewController?

Hello, I want to add SearchBar to my application, everything worked out for me and it works, but it only works for one TableviewController when I use it, it gives results only from the First TableViewController but I have a second TableViewController which is the cells of the first controller. The question is how to do that the search was looking for the results of the second TableViewController. If there is any video tutorial, no matter what language. Or throw something else. I'm waiting for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rasul Kakushev, 2017-08-11
@Raserad

Create one super class for 2 controllers. Next, in this class, write the logic for the search bar and then for each individual controller, create your own classes and inherit from the superclass indicated above. In ib in both controllers, bind the searchbar to the searchbar in the super class and voila. I think it will work))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question