#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];//描边粗细


相关文章:

  • 2022-03-06
  • 2021-08-01
  • 2021-12-04
  • 2021-11-17
  • 2021-04-21
  • 2021-09-19
  • 2021-12-16
  • 2021-08-30
猜你喜欢
  • 2021-07-08
  • 2022-12-23
  • 2021-11-25
  • 2021-05-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案