- (id)imageViewSetCornerRadius:(UIImageView *)imageView withImage:(UIImage *)image {
imageView.image = image;
imageView.layer.borderWidth = 3.0f;
imageView.layer.borderColor = [UIColor whiteColor].CGColor;
imageView.layer.cornerRadius = imageView.frame.size.width / 2;
imageView.clipsToBounds = YES;
return imageView;
}
沒有留言:
張貼留言