I have an UIViewController
. Inside the view controller there is a custom UIView
class object added as subview. Now, inside the custom UIView
class, I have a search display controller. When I do this
SearchDisplayController = [[UISearchDisplayController alloc] initWithSearchBar:SearchBar contentsController:self]
it is giving warning as self is UIView
object, not UIViewcontroller
object, so search result is not showing.
I want to show search result from the UIView
only.
How can I do that? Any kind of help is appreciated.