zoukankan      html  css  js  c++  java
  • 隐藏UISearchBar中的删除按钮

     

    UISearchBar *searchBar;

     

    for (UIView *subview in [searchBar.subviews firstObject].subviews{

      if ([subview isKindOfClass:[UITextField class]]) {

        UITextField *searchField = (UITextField *)subview;

        searchField.clearButtonMode = UITextFieldViewModeNever;

        break;

      }

    }

  • 相关阅读:
    编译nginx
    MVPN技术原理
    python中_, __, __foo__区别及使用场景
    https双向认证(python)
    http keepalive test code(python)
    压缩 KVM 的 qcow2 镜像文件
    nohup python程序,print无输出
    Less(51)
    Less(50)
    Less(49)
  • 原文地址:https://www.cnblogs.com/Zerone-Lee/p/6895416.html
Copyright © 2011-2022 走看看