美文网首页
设置UIImageView 圆角

设置UIImageView 圆角

作者: 行走的风车 | 来源:发表于2016-06-30 17:50 被阅读57次
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