#import <QuartzCore/QuartzCore.h> //导入框架
self.aView.layer setCornerRadius:8.0];//倒角self.aView.layer setShadowColor:[[UIColor blackColor]CGColor]];//阴影颜色self.aView.layer setShadowOffset:CGSizeMake(10, 10)];//阴影距离self.aView.layer setShadowOpacity:0.2];self.aView.layer setShadowRadius:0];//阴影模糊程度self.aView.layer setBorderColor:[[UIColor redColor] CGColor]];//描边颜色self.aView.layer setBorderWidth:2.0];//描边粗细