Edited at

画像の角丸+シャドウ加工

More than 5 years have passed since last update.

viewを二重に入れ子にするしかないらしい

        innerImageView.image = img;

[innerImageView.layer setMasksToBounds:YES];
[innerImageView.layer setCornerRadius:5.0f];
[outerImageView addSubview:innerView];

outerImageView.layer.shadowColor = [[UIColor blackColor] CGColor];
outerImageView.layer.shadowOffset = CGSizeMake(0, 0.1f);
outerImageView.layer.shadowOpacity = 0.8;
outerImageView.layer.shadowRadius = 5.0f;
outerImageView.clipsToBounds = NO;

UITableViewでこれやろうとすると狂ってしまう