iOS-头像加阴影

self.iconImageView.layer.shadowOpacity = 0.8;

self.iconImageView.layer.shadowColor = kTitleGrayColor.CGColor;

self.iconImageView.layer.shadowRadius = 6;

self.iconImageView.layer.shadowOffset = CGSizeMake(0,0);

[self.iconImageView sd_setImageWithURL:[NSURL URLWithString:model.avatar] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {

self.iconImageView.image = [UMFactory imageWithSourceImage:image];

}];

发表评论

电子邮件地址不会被公开。 必填项已用*标注