pod 'UIImage+AverageColor' #import "UIImage+AverageColor.h" UIImage *img = [UIImage imageNamed:@"foo"]; UIColor *color = img.averageColor;