//获取快照

- (UIView*)customSnapshotInView:(UIView*)inview

{

    UIView *snapshot = [inview snapshotViewAfterScreenUpdates:YES];

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

    snapshot.layer.shadowOffset = CGSizeMake(0, 0);

    snapshot.layer.shadowRadius = 4;

    snapshot.layer.cornerRadius = 0;

    snapshot.layer.shadowOpacity = 0.9;

    return snapshot;

}

 

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2021-08-02
  • 2021-09-22
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-02
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-03-02
相关资源
相似解决方案