UIColor *color = [UIColor colorWithRed:0.95 green:0.95 blue:0.95 alpha:0]; [aImage setBackgroundColor:color]; //设置背景透明 /******设置图片圆角begin*******/ aImage.layer.masksToBounds = YES; aImage.layer.cornerRadius = 5.0; aImage.layer.borderWidth = 0.5; aImage.layer.borderColor = [[UIColor grayColor] CGColor]; /******设置图片圆角end********/
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/5245.html