ios 图片添加阴影

来源:互联网 发布:电脑程序编程入门 编辑:程序博客网 时间:2024/05/22 08:05

UIimageView *imageView = [[UIImageView alloc ] init];

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

imageView.layer.shadowOffset = CGSizeMake(3,2);

imageView.layer.shadowOpacity = 0.6;

imageView.layer.shadowRadius = 1.0;

imageView.clipsToBounds = NO;