美文网首页
view 圆角+阴影

view 圆角+阴影

作者: 没错就是豪哥灬 | 来源:发表于2021-02-09 18:54 被阅读0次

    UIView*view = [[UIViewalloc]init];

        view.frame = CGRectMake(13.0,231.0,350.0,109.0);

        view.layer.backgroundColor= [UIColorcolorWithRed:255/255.0green:255/255.0blue:255/255.0alpha:1.0].CGColor;

        view.layer.cornerRadius = 15;

        view.layer.shadowColor= [UIColorcolorWithRed:0/255.0green:0/255.0blue:0/255.0alpha:0.1].CGColor;

        view.layer.shadowOffset=CGSizeMake(0,0);

        view.layer.shadowOpacity = 1;

        view.layer.shadowRadius = 10;

        [self.containerViewaddSubview:view];

    相关文章

      网友评论

          本文标题:view 圆角+阴影

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