uitoolbar 删除背景

<p class="p1"><span class="s1"><span class="Apple-tab-span"> </span>[myToolBar </span>setBackgroundColor<span class="s1">:[</span><span class="s2">UIColor</span><span class="s1"> </span>clearColor<span class="s1">]];</span></p><p class="p1"><span class="s1"><br/></span></p><p class="p1"><span class="s1"> @end后面加上</span></p><p class="p1"><span class="s1"><br/></span></p><p class="p1"><span class="s1"> <title/><p class="p1"><span class="s1">@implementation</span> UIToolbar(Transparent) </p> <p class="p1">-(<span class="s1">void</span>)drawRect:(<span class="s2">CGRect</span>)rect {</p> <p class="p2"><span class="s3">    </span>// do nothing in here</p> <p class="p1">}</p> <p class="p3">@end</p></span></p><p/>

posted on 2011-07-27 17:24  风乔  阅读(207)  评论(0编辑  收藏  举报

导航