Giter Club home page Giter Club logo

uisearchcontrollerdeme's Introduction

UISearchControllerDeme

按照微信的搜索框自己写了一个UISearchControllerDeme,WeChatSearchController 最近需要做一个搜索效果和微信搜索页面很类似,我使用UISearchController尝试了很多办法,都不能默认显示searchResultController,经过翻墙查找海量资料,终于做成微信的搜索效果,需要设置的地方只有下面一个地方:

#pragma mark - UISearchResultsUpdating
//每输入一个字符都会执行一次
- (void)updateSearchResultsForSearchController:(UISearchController *)searchController{
    searchController.searchResultsController.view.hidden = NO;
}

就这句,让 searchResultsController 一直显示:

searchController.searchResultsController.view.hidden = NO;

效果如图:
SearchController iPhone 8P SearchController iPhone X

如果小伙伴们喜欢,请为我打call!star!么了个哒~

uisearchcontrollerdeme's People

Contributors

biyuhuaping avatar

Watchers

James Cloos avatar 杜洁鹏 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.