uitoolbar 圆角

#import <QuartzCore/QuartzCore.h>

// myToolBar.clipsToBounds=YES;

//    CALayer *l=myToolBar.layer;

//    // set corner radious

//    [l setCornerRadius:10];

//    // to apply border on corners

//    [l setBorderColor:[[UIColor colorWithRed:31.0/255.0 green:157.0/255.0 blue:202.0/255.0 alpha:0.5] CGColor]];

//    // to apply set border width.

//    [l setBorderWidth:5.0];

你可能感兴趣的:(toolbar)