Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is searchdisplaycontroller?

When I give IBOutlet objects in my ViewController, I could not find out them in InterfaceBuilder to link to the object which are in the view.

After some time it comes automatically...(I have set correctly file owner) There is only one I am seeing that is searchDisplayController.

What is it?


1 Answers

I'm not sure what is your exact problem but to answer 'what is searchdisplaycontroller' heres the class reference. It is used to handle search using a search bar. You have probably created an outlet for this in your controller. All the outlets generally do show up immediately after you declare them in you file's owner's header (.h). If you have created some outlet and still don't see it, try closing the xib and opening it again or quit interface builder and reopen.

EDIT: The UIViewController has a UISearchDisplayController as a property. You can read more in the UIViewController's class reference. As your file's owner is a subclass of UIViewController searchDisplayController appears in the inspector.

like image 101
Swapnil Luktuke Avatar answered Aug 02 '26 23:08

Swapnil Luktuke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!