uiimageview 圆角

来源:互联网 发布:java第三版课后题答案 编辑:程序博客网 时间:2024/06/09 22:40

    UIImageView *view=[[UIImageViewalloc]initWithFrame:CGRectMake(10,0, 300,130)];

    [view.layersetMasksToBounds:YES];

    view.layer.cornerRadius=4;

    view.clipsToBounds=YES;

    view.contentMode=UIViewContentModeScaleAspectFill;

原创粉丝点击