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
// | |
// UIImage+Additions.h | |
// Sparrow | |
// | |
// Created by Shilo White on 10/16/11. | |
// Copyright 2011 Shilocity Productions. All rights reserved. | |
// | |
#define COLOR_PART_RED(color) (((color) >> 16) & 0xff) | |
#define COLOR_PART_GREEN(color) (((color) >> 8) & 0xff) |
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
@interface LabelSizer : NSObject { | |
} | |
+(float)getExpectedHeightForLabel:(UILabel*)label; | |
+(float)makeLabelCorrectSizeForCurrentWidth:(UILabel*)label; | |
+(float)getExpectedHeightForText:(NSString*)text withFontName:(NSString*)font atSize:(float)fontSize inContainerWidth:(float)width; | |
@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
// Useful Macros. | |
// The best place to import this is in your project's pch file. | |
// See http://www.cimgf.com/2010/05/02/my-current-prefix-pch-file/ for details. | |
// Most current version at https://gist.github.com/325926 along with usage notes. | |
#ifndef jcscommonmacros | |
#define jcscommonmacros_1_0 10000 | |
#define jcscommonmacros jcscommonmacros_1_0 | |
#endif |