zoukankan      html  css  js  c++  java
  • uisearchbar 去除背景

    <p class="p1"><span class="s1">[</span><span class="s2">searchBar</span><span class="s1"> </span>setBackgroundColor<span class="s1">:[</span><span class="s3">UIColor</span><span class="s1"> </span>clearColor<span class="s1">]];</span></p> <p class="p2"><span class="Apple-tab-span"> </span><span class="s4">for</span> (<span class="s3">UIView</span> *subview <span class="s4">in</span> <span class="s2">searchBar</span>.<span class="s3">subviews</span>)</p> <p class="p2"><span class="Apple-tab-span"> </span>{</p> <p class="p1"><span class="s1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span><span class="s4">if</span><span class="s1"> ([subview </span>isKindOfClass<span class="s1">:</span>NSClassFromString<span class="s1">(</span><span class="s5">@"UISearchBarBackground"</span><span class="s1">)])</span></p> <p class="p1"><span class="s1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>[subview </span>removeFromSuperview<span class="s1">];</span></p> <p class="p2"><span class="Apple-tab-span"> </span>}</p> <p class="p3"><span class="s1"><span class="Apple-tab-span"> </span>//</span><span class="s4">self</span><span class="s1">.</span>navigationItem<span class="s1">.</span>titleView<span class="s1"> =</span><span class="s2">searchBar</span><span class="s1">;</span></p><p/>
  • 相关阅读:
    Java多线程:ThreadLocal
    selenium安装环境
    http常用标签
    http与https区别,get与post请求区别
    测试评审清单
    python面向对象之方法
    python正则之模式re.I re.M
    python 正则之字母匹配
    python正则之特殊表达式 .*?{}
    python正则之match search findall
  • 原文地址:https://www.cnblogs.com/zzxap/p/2175632.html
Copyright © 2011-2022 走看看