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

#import <QuartzCore/QuartzCore.h>

//设置圆角边框
retweetedView.layer.cornerRadius = 8;
retweetedView.layer.masksToBounds = YES;
//设置边框及边框颜色
retweetedView.layer.borderWidth = 2;
retweetedView.layer.borderColor =[ [UIColor grayColor] CGColor];
原文地址:https://www.cnblogs.com/foxmin/p/2723912.html