设置UIImage的边框和圆角大小以及颜色

#import <QuartzCore/QuartzCore.h>

//设置圆角边框
retweetedView.layer.cornerRadius = 8;
retweetedView.layer.masksToBounds = YES;
//设置边框及边框颜色
retweetedView.layer.borderWidth = 2;
retweetedView.layer.borderColor =[ [UIColor grayColor] CGColor];
posted @ 2012-10-15 10:44  FoxBabe  阅读(3419)  评论(2编辑  收藏  举报