草庐IT

customSearchBar

全部标签

iOS swift : SearchController with a StoryBoard UISearchBar

晚上,我构建了一个搜索Controller,而且我还有以编程方式创建他的搜索栏的代码。但我想用Storyboard中设计的搜索栏替换此代码。所以我的问题是,如何将socket连接到搜索Controller?这是我的代码:publicclassCustomSearchController:UISearchController{publicvarcustomSearchBar=UISearchBar()overridepublicvarsearchBar:UISearchBar{get{returnself.customSearchBar}}}funcconfigureSearchCont