UIBezierPath *shadowPath = [UIBezierPath bezierPathWithRect:_backView.bounds];

    _backView.layer.masksToBounds = NO;

    _backView.layer.shadowColor = [UIColor blackColor].CGColor;

    _backView.layer.shadowOffset = CGSizeMake(3.0f, 3.0f);

    _backView.layer.shadowOpacity = 0.5f;

    _backView.layer.shadowRadius=10;

    _backView.layer.shadowPath = shadowPath.CGPath;

相关文章:

  • 2022-03-13
  • 2021-12-26
  • 2021-11-23
  • 2022-12-23
  • 2021-11-08
  • 2021-11-08
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-13
  • 2021-06-05
相关资源
相似解决方案