Coder Social home page Coder Social logo

llsearchview's Issues

有点问题,修改了一些,作者有空可以完善下哈

LLSearchViewController中的如下方法是不需要的
/** 点击取消 */

  • (void)cancelDidClick
    {
    [self.searchBar resignFirstResponder];

    [self dismissViewControllerAnimated:NO completion:nil];
    }


还有个bug当在搜索结果页面点击输入框中的x然后再点击右上角的取消按钮时候不能回退而且页面又会变成搜索结果页面了,已经进行了修复,
LLSearchResultViewController里面

  • (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar
    {
    [self.searchBar resignFirstResponder];

    _titleView.frame = CGRectMake(0, 7, self.view.frame.size.width - 44 * 2 - 16, 30);
    _searchBar.frame = CGRectMake(0, 0, CGRectGetWidth(_titleView.frame), 30);
    searchBar.showsCancelButton = NO;
    _activity = NO;

    _searchSuggestVC.view.hidden = YES;
    [self presentVCFirstBackClick:nil];
    }
    加上了presentVc那句
    然后当回退的时候下面的resultView会闪现,
    解决办法是

  • (void)presentVCFirstBackClick:(UIButton *)sender
    {
    [_searchBar resignFirstResponder];
    //在pop出去的时候移除resultview,不然会有一瞬间的闪现
    [_resultView removeFromSuperview];
    [self.navigationController popToRootViewControllerAnimated:YES];
    }
    回退前移除,以上是我进行修改过的地方,暂时发现这两个问题

第一进行搜索的时候,跳转到LLSearchResultViewController加载出搜索的关键字商品。但是在LLSearchResultViewController这个控制器里面点击搜索栏的X号。重新回到LLSearchViewController控制器,在点击最近搜索或者热门搜索时,跳转到LLSearchResultViewController,但是此时数据重新加载。请问这种问题怎么解决?

第一进行搜索的时候,跳转到LLSearchResultViewController加载出搜索的关键字商品。但是在LLSearchResultViewController这个控制器里面点击搜索栏的X号。重新回到LLSearchViewController控制器,在点击最近搜索或者热门搜索时,跳转到LLSearchResultViewController,但是此时数据重新加载。请问这种问题怎么解决?

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.