您的位置:首页 > 产品设计 > UI/UE

UIImageView 圆角设置

2015-07-28 10:20 489 查看
imgLogo.layer.masksToBounds= YES; //设置在layer之下的都盖住
imgLogo.layer.cornerRadius = imgLogo.bounds.size.width*0.5; //设置layer的圆角,是自身宽度的一半
imgLogo.layer.borderWidth=3.0; //圆角边框宽度
imgLogo.layer.borderColor = A_RGBA(173, 173, 173, 1).CGColor; //圆角颜色
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: