objective C实现圆角效果
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********/