UIImageView *imageview = [[UIImageView alloc] initWithFrame:CGRectMake(1, 1, 66.0f, 76.0f)];
  
   imageview.tag=1;
   [imageview setImage:img];
   imageview.layer.shadowColor=[UIColor blackColor].CGColor;
   imageview.userInteractionEnabled=YES;
   imageview.layer.shadowOpacity=0.5;
   imageview.layer.shadowOffset = CGSizeMake(5,3);
  
   imageview.layer.shadowColor = [UIColor blueColor].CGColor;

此代码再3.1.3下运行失败。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2021-05-24
  • 2022-03-13
  • 2021-04-27
  • 2022-12-23
相关资源
相似解决方案