Skip to content

Instantly share code, notes, and snippets.

View ittybittydude's full-sized avatar

Sean Woodhouse ittybittydude

View GitHub Profile
@pk
pk / ExampleTest.m
Created June 21, 2011 15:00
Using method swizzling and blocks to test Class methods in Objective-C.
#import "SenTestCase+MethodSwizzling.m"
@interface ExampleTest : SenTestCase {}
+ (BOOL)trueMethod;
+ (BOOL)falseMethod;
@end
@implementation ExampleTest
+ (BOOL)trueMethod { return YES; }
@kevinoneill
kevinoneill / UIImage+Size.h
Created March 21, 2011 03:32
Tinting UIImages
//
// UIImage+Size.h
// Quickie
//
// Created by Kevin O'Neill on 13/03/11.
// Copyright 2011 Kevin O'Neill. All rights reserved.
//
#import <UIKit/UIKit.h>