NewsBlur/media/ios/Classes/Utilities.h

23 lines
636 B
C
Raw Normal View History

//
// Utilities.h
// NewsBlur
//
// Created by Samuel Clay on 10/17/11.
// Copyright (c) 2011 NewsBlur. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface Utilities : NSObject <NSCacheDelegate> {
NSCache *imageCache;
}
+ (void)saveImage:(UIImage *)image feedId:(NSString *)filename;
+ (UIImage *)getImage:(NSString *)filename;
+ (UIImage *)getImage:(NSString *)filename isSocial:(BOOL)isSocial;
2012-07-22 09:12:02 -07:00
+ (void)drawLinearGradientWithRect:(CGRect)rect startColor:(CGColorRef)startColor endColor:(CGColorRef)endColor;
+ (void)saveimagesToDisk;
2012-07-11 18:08:07 -07:00
+ (UIImage *)roundCorneredImage:(UIImage *)orig radius:(CGFloat)r;
@end