什么是搜索显示控制器?
当我在 ViewController 中提供 IBOutlet 对象时,我无法在 InterfaceBuilder 中找到它们来链接到视图中的对象。
一段时间后它会自动出现...(我已经正确设置了文件所有者)我只看到一个是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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不确定您的确切问题是什么,但要回答“什么是 searchdisplaycontroller”,这里是 类引用。它用于使用搜索栏处理搜索。您可能已经在控制器中为此创建了一个插座。所有出口通常在您在文件所有者的标头 (.h) 中声明后立即显示。如果您已经创建了一些插座但仍然看不到它,请尝试关闭 xib 并再次打开它,或者退出界面生成器并重新打开。
编辑: UIViewController 有一个 UISearchDisplayController 作为属性。您可以在 UIViewController 的类引用。由于文件的所有者是 UIViewController 的子类,因此 searchDisplayController 出现在检查器中。
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.