ios UIView 和UIImageView设置阴影

2017-05-24  本文已影响459人  无沣

imageView.layer.shadowColor= [UIColorgreenColor].CGColor;//阴影颜色

imageView.layer.shadowOffset= CGSizeMake(0,0);//偏移距离

imageView.layer.shadowOpacity=0.5;//不透明度

imageView.layer.shadowRadius=10.0;//半径

上一篇 下一篇

猜你喜欢

热点阅读