This file contains hidden or 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
// | |
// 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> |
This file contains hidden or 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
// 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) |