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;

      }

    }

  • 相关阅读:
    [swustoj 411] 售货员的难题
    白书P61
    白书P60
    [ZOJ 3471] Most Powerful
    [HDU 3001] Travelling
    [转] acmer必看的26个对acm态度
    [HDU 1254] 推箱子
    [POJ 3311] Hie with the Pie
    [POJ 3254] Corn Fields
    power
  • 原文地址:https://www.cnblogs.com/Zerone-Lee/p/6895416.html
Copyright © 2011-2022 走看看