This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Author: janos.tolgyesi@gmail.com | |
// License: BSD | |
#import <Foundation/Foundation.h> | |
@interface TJIntegerArray : NSObject <NSFastEnumeration> | |
{ | |
NSInteger* _array; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSString (RandomFileName) | |
+(NSString*)randomString; | |
+(NSString*)randomFileNameWithExtension:(NSString*)extension; | |
+(NSString*)randomFileNameInDirectory:(NSSearchPathDirectory)directory withExtension:(NSString*)extension; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSString (URLEncoding) | |
- (NSString*)URLEncodedString; | |
- (NSString*)URLDecodedString; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIImage (Retina4) | |
+ (UIImage *)imageNamedRetina4:(NSString *)imageName; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface TJSettingsManager : NSObject | |
{ | |
NSUserDefaults* _userDefaults; | |
} | |
+(id)sharedInstance; | |
-(void)save; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <UIKit/UIKit.h> | |
@interface UIImageView (OfflineCache) | |
-(void)setImageCachedWithURL:(NSURL*)url | |
placeholderImage:(UIImage *)placeholderImage | |
success:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, UIImage *image))success | |
failure:(void (^)(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error))failure; | |
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface TJXMLElement : NSObject | |
@property (nonatomic, readonly) NSString* name; | |
@property (nonatomic, readonly) NSDictionary* attributes; | |
@property (nonatomic, retain) NSMutableArray* children; | |
@property (nonatomic, retain) NSMutableString* text; | |
- (id) initWithName:(NSString*)name withAttributes:(NSDictionary*)attributes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef RECTUTILS_H | |
#define RECTUTILS_H | |
#include <CoreGraphics/CGGeometry.h> | |
CG_INLINE CGRect CGRectChangeSize(CGRect rect, CGSize size); | |
CG_INLINE CGRect CGRectChangeWidth(CGRect rect, CGFloat width); | |
CG_INLINE CGRect CGRectChangeHeight(CGRect rect, CGFloat height); | |
CG_INLINE CGRect CGRectChangeOrigin(CGRect rect, CGPoint origin); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ | |
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ | |
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Foundation/Foundation.h> | |
@interface NSURL (QueryParser) | |
-(NSDictionary*)queryDictionary; | |
@end | |
OlderNewer