Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (21 sloc) 775 Bytes
// Prefix header for all source files of the 'TweetWall' target in the 'TweetWall' project
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import <Availability.h>
#ifndef __IPHONE_3_0
#warning "This project uses features only available in iPhone SDK 3.0 and later."
static inline CGRect CHCenterRectInRect(CGRect theRect, CGRect inRect) {
return CGRectMake(floorf(fabsf((inRect.size.width / 2.0f) - (theRect.size.width / 2.0f))),
floorf(fabsf((inRect.size.height / 2.0f) - (theRect.size.height / 2.0f))), theRect.size.width, theRect.size.height);
static inline CGRect CHBounds(CGRect theRect) {
CGRect bounds = theRect;
bounds.origin = CGPointZero;
return bounds;