uitoolbar 圆角

<p class="p1"><span class="s1">#import </span><QuartzCore/QuartzCore.h></p><p class="p1"/><p class="p1"> </p><title/><p class="p1">//<span class="Apple-tab-span"> </span>myToolBar.clipsToBounds=YES;</p> <p class="p1">//    CALayer *l=myToolBar.layer;</p> <p class="p1">//    // set corner radious</p> <p class="p1">//    [l setCornerRadius:10];</p> <p class="p1">//    // to apply border on corners</p> <p class="p1">//    [l setBorderColor:[[UIColor colorWithRed:31.0/255.0 green:157.0/255.0 blue:202.0/255.0 alpha:0.5] CGColor]];</p> <p class="p1">//    // to apply set border width.</p> <p class="p1">//    [l setBorderWidth:5.0];</p><p/>

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

导航