you can use below code for a round of images
UIGraphicsBeginImageContextWithOptions (CGSizeMake (14, 14), NO, [UIScreen mainScreen] .scale);
-(UIImage *)makeRoundedImage:(UIImage *) image radius: (float) radius { CALayer *imageLayer = [CALayer layer]; imageLayer.frame = CGRectMake(0, 0, 14, 14); imageLayer.contents = (id) image.CGImage; imageLayer.masksToBounds = YES; imageLayer.cornerRadius = radius; UIGraphicsBeginImageContextWithOptions(CGSizeMake(14, 14), NO, [UIScreen mainScreen].scale); [imageLayer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *roundedImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); return roundedImage; }
source share