bryan

Results 1 comments of bryan

修改一下,用着还行。 - (void)zy_cornerRadiusWithImage:(UIImage *)image cornerRadius:(CGFloat)cornerRadius rectCornerType:(UIRectCorner)rectCornerType { CGFloat scale = [UIScreen mainScreen].scale; CGSize cornerRadii = CGSizeMake(cornerRadius, cornerRadius); dispatch_async(dispatch_get_global_queue(0, 0), ^{ UIGraphicsBeginImageContextWithOptions(image.size, NO, scale); CGContextRef context = UIGraphicsGetCurrentContext(); CGContextScaleCTM(context, 1, -1);...