设置图片圆角

aImageView.layer.cornerRadius = aImageView.frame.size.width/2.0;

aImageView.layer.masksToBounds = YES;

原文地址:https://www.cnblogs.com/xufengyuan/p/6660255.html