摘要: //// CCRuntime.h// CCFC//// Created by xichen on 11-12-30.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <objc/runtime.h>@interface CCRuntime : NSObject {}// get the var of the obj+ (Ivar)getObjVar:(id)obj varname:(const char *)varname ret:(void 阅读全文
posted @ 2012-01-03 14:11 cc_team 阅读(111) 评论(0) 推荐(0) 编辑
摘要: //// RectangleBlock.m// PhoneManager//// Created by chenxu on 11-9-11.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#import "CCRectangleBlock.h"#import "CCSystem.h"@implementation CCRectangleBlock@synthesize blocksPercentage, blocksColor;- (id)initWithFrame:(CGRect) 阅读全文
posted @ 2012-01-03 14:10 cc_team 阅读(166) 评论(0) 推荐(0) 编辑
摘要: //// RectangleBlock.h// PhoneManager//// Created by chenxu on 11-9-11.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#import <UIKit/UIKit.h>@interface CCRectangleBlock : UIView { NSUInteger blocksNumber; NSArray *blocksPercentage; NSArray *blocksColor;}@property(nonatomic, ... 阅读全文
posted @ 2012-01-03 14:08 cc_team 阅读(222) 评论(0) 推荐(0) 编辑
摘要: //// CCRect.m// CCFC//// Created by xichen on 11-12-28.// Copyright 2011 ccteam. All rights reserved.//#import "CCRect.h"#import "CCCommon.h"#import "CCNSNumber.h"@implementation CCRect- (id)initWithX:(CGFloat)x y:(CGFloat)y width:(CGFloat)width height:(CGFloat)height{ 阅读全文
posted @ 2012-01-03 14:07 cc_team 阅读(216) 评论(0) 推荐(0) 编辑
摘要: //// CCRect.h// CCFC//// Created by xichen on 11-12-28.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCRect : NSObject {@public CGPoint origin; CGSize size;}- (id)initWithX:(CGFloat)x y:(CGFloat)y width:(CGFloat)width h... 阅读全文
posted @ 2012-01-03 14:06 cc_team 阅读(197) 评论(0) 推荐(0) 编辑
摘要: //// CCRandom.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCRandom.h"#import <stdlib.h>#import <mach/mach_time.h>#import "CCLog.h"@implementation CCRandom// it uses a slightly more compicated argorithm than commo 阅读全文
posted @ 2012-01-03 14:05 cc_team 阅读(200) 评论(0) 推荐(0) 编辑
摘要: //// CCRandom.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCRandom : NSObject {}+ (long)generateRandomNum;+ (NSString *)generateRandomStringByLen:(int)len;@end可能有更新:googlecode链接地址:http://code.google.com/ 阅读全文
posted @ 2012-01-03 14:04 cc_team 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //// CCRadix.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#include "CCRadix.h"@implementation CCRadix+ (NSString *)get2RadixStr:(unsigned)n{ return [self getRadixStr:n withRadix:2];}+ (NSString *)get8RadixStr:(unsigned)n{ return... 阅读全文
posted @ 2012-01-03 14:03 cc_team 阅读(205) 评论(0) 推荐(0) 编辑
摘要: //// CCRadix.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 __MyCompanyName__. All rights reserved.//#ifndef CC_RADIX_H#define CC_RADIX_Htypedef char SMALL_INT;#ifdef __OBJC__// it used for radix operation@interface CCRadix : NSObject {}+ (NSString *)get2RadixStr:(unsigned)n;+ (NS... 阅读全文
posted @ 2012-01-03 14:02 cc_team 阅读(190) 评论(0) 推荐(0) 编辑
摘要: //// CCPoint.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPoint.h"#import "CCCommon.h"#import "CCNSNumber.h"@implementation CCPoint- (id)initWithX:(CGFloat)aX withY:(CGFloat)aY{ COMMON_INIT_BEGIN x = aX; y = a... 阅读全文
posted @ 2012-01-03 14:00 cc_team 阅读(215) 评论(0) 推荐(0) 编辑
摘要: //// CCPoint.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCPoint : NSObject{@public CGFloat x; CGFloat y;}- (id)initWithX:(CGFloat)x withY:(CGFloat)y;+ (id)pointWithX:(CGFloat)aX withY:(CGFl... 阅读全文
posted @ 2012-01-03 13:59 cc_team 阅读(167) 评论(0) 推荐(0) 编辑