iOS UIView增长阴影

//添加阴影
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;

//文字描边
只设置shadowColor,不设置shadowOffset就能够实现描边效果
相关文章
相关标签/搜索