Skip to content

Instantly share code, notes, and snippets.

View Reefaq's full-sized avatar
📱
Eat > Build > Sleep > Repeat...

Reefaq Kader Reefaq

📱
Eat > Build > Sleep > Repeat...
View GitHub Profile
@Reefaq
Reefaq / Common.h
Created March 4, 2013 07:21
Useful Macro for almost every project - Gather from many sources and also included of own.
//
// Common.h
// Userful Macro
//
// Created by Reefaq on 06/12/12.
// Copyright (c) 2012 Reefaq. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
// original >> http://pastie.org/1147077/
-(void)drawNinePartImage:(NSArray *)images inRect:(CGRect)rect
{
CGPoint origin = rect.origin;
CGSize size = rect.size;
NSInteger partCount = 9;
if ([images count] < partCount)