iphone 开发图片显示圆角效果

今天修改了以前的iphone程序代码,主要对程序的UI做了修改,调整了布局,图片,文字等显示效果,看着更舒服了。

原来效果

修改后的效果

实现圆角图片代码:

UIColor *color=[UIColor colorWithRed:0.95 green:0.95 blue: 0.95 alpha:0];
[asyncImage setBackgroundColor:color];//设置背景透明

 /****设置图片圆角begin***/
asyncImage.layer.masksToBounds = YES;
asyncImage.layer.cornerRadius = 5.0;
asyncImage.layer.borderWidth = 0.5;
asyncImage.layer.borderColor = [[UIColor grayColor] CGColor];
/****设置图片圆角end****/
原文地址:https://www.cnblogs.com/fighter/p/2082233.html