NewsBlur/clients/ios/Classes/Utilities.h

33 lines
975 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>
void drawLinearGradient(CGContextRef context, CGRect rect, CGColorRef startColor,
CGColorRef endColor);
@interface Utilities : NSObject <NSCacheDelegate> {
NSCache *imageCache;
}
2012-07-22 09:12:02 -07:00
+ (void)drawLinearGradientWithRect:(CGRect)rect startColor:(CGColorRef)startColor endColor:(CGColorRef)endColor;
2012-07-11 18:08:07 -07:00
+ (UIImage *)roundCorneredImage:(UIImage *)orig radius:(CGFloat)r;
+ (UIImage *)roundCorneredImage: (UIImage*)orig radius:(CGFloat)r convertToSize:(CGSize)size;
2013-12-06 16:29:15 -08:00
+ (UIImage *)imageWithImage:(UIImage *)image convertToSize:(CGSize)size;
+ (NSString *)md5:(NSString *)string;
+ (NSString *)formatLongDateFromTimestamp:(NSInteger)timestamp;
+ (NSString *)formatShortDateFromTimestamp:(NSInteger)timestamp;
@end
2022-03-29 21:20:41 -07:00
@interface UIResponder (FirstResponder)
+(id)currentFirstResponder;
@end