UIImageView*icon = [[UIImageViewalloc]initWithFrame:CGRectMake(WIDTH_SCREEN/2-75,20,150,150)];
icon.image= [UIImageimageNamed:@"icon@180.png"];
icon.layer.masksToBounds=YES;//设置圆角必须设置此属性
icon.layer.cornerRadius=30.0f;
UIImageView*icon = [[UIImageViewalloc]initWithFrame:CGRectMake(WIDTH_SCREEN/2-75,20,150,150)];
icon.image= [UIImageimageNamed:@"icon@180.png"];
icon.layer.masksToBounds=YES;//设置圆角必须设置此属性
icon.layer.cornerRadius=30.0f;
本文标题:设置UIImageView 圆角
本文链接:https://www.haomeiwen.com/subject/ojhfjttx.html
网友评论