zoukankan      html  css  js  c++  java
  • swift随笔

    1.导航栏添加搜索框:

      let sc=UISearchController(searchResultsController: nil)

      sc.searchResultsUpdater = self

      self.navigationItem.titleView=sc.searchBar

    2.导航栏下面添加搜索框:

     

     let sc=UISearchController(searchResultsController: nil)//放函数外面才有用

      sc.searchResultsUpdater = self

      tableview.tableHeaderView=sc.searchBar

  • 相关阅读:
    PAT 2016 数据的交换输出
    HDU 2020 绝对值排序
    HDU 2013 蟠桃记
    HDU 2005 第几天?
    HDU 2004 成绩转换
    系统时钟初始化
    array_map 去除数组参数里面左右两端空格
    建立自己的异常类方式
    laravel withCount 统计关联数量
    laravel门面和服务提供者使用
  • 原文地址:https://www.cnblogs.com/auvxx/p/6694388.html
Copyright © 2011-2022 走看看