iOS投影效果

作者: magicL1 | 来源:发表于2017-01-12 11:46 被阅读0次

    UIView的投影设置主要通过UIView的layer的相关属性来设置

    阴影的颜色:imgView.layer.shadowColor = [UIColor blackColor].CGColor;

    阴影的透明度:imgView.layer.shadowOpacity = 0.4f;

    阴影的圆角:imgView.layer.shadowRadius = 4.0f;

    阴影偏移量:imgView.layer.shadowOffset = CGSizeMake(0,0);//Defaults to (0, -3). Animatable.

    相关文章

      网友评论

        本文标题:iOS投影效果

        本文链接:https://www.haomeiwen.com/subject/lkudbttx.html