摘要:
//// CCMapAnnotation.h// CCFC//// Created by xichen on 11-12-30.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <MapKit/MKAnnotation.h>@interface CCMapAnnotation : NSObject<MKAnnotation> { NSString *_title; NSString *_subtitle; ... 阅读全文
摘要:
//// CCMail.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCMail.h"#import "CCNSPredicate.h"@implementation CCMail// 调用系统mail界面+ (MFMailComposeViewController *)showMailView:(id)delegate withRecipients:(NSArray *... 阅读全文
摘要:
//// CCMail.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <MessageUI/MFMailComposeViewController.h>@interface CCMail : NSObject { }// 调用系统mail界面+ (MFMailComposeViewController *)showMailView:(id)delegat 阅读全文
摘要:
//// CCLog.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCLog.h"@implementation CCLog+ (void)logDetail:(NSString *)str{ NSLog(@"filename: %s line: %d %@", __FILE__, __LINE__, (str));}@endgooglecode链接地址(会有更新):http://code.goog 阅读全文
摘要:
//// CCLanguage.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCLanguage.h"@implementation CCLanguage// 获取系统当前使用的本地化语言+ (NSString *)getSystemLanguage{ NSUserDefaults *defs = [NSUserDefaults standardUserDefaults]; NSArray *languages = [ 阅读全文
摘要:
//// CCLog.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import "CCUIView.h"#import "CCCommon.h"#define C_LOG(cStr, ...) printf(cStr, ##__VA_ARGS__)#define C_LOG_ENDL(cStr, ...) print... 阅读全文
摘要:
//// CCLanguage.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCLanguage : NSObject { }// 获取系统当前使用的本地化语言+ (NSString *)getSystemLanguage;// get all languages that the system supports+ (NSArray *)getAllLan. 阅读全文
摘要:
//// CCKeyboard.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCKeyboard.h"@implementation CCKeyboard+ (UITextInputMode *)currentInputMode{ return [UITextInputMode currentInputMode];}+ (NSString *)primaryLanguage{ return [[UITex... 阅读全文
摘要:
//// CCKeyboard.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import "CCCommon.h"#import "CCConfig.h"#import "CCDepend.h"#if CC_ENABLE_PRIVATE_API// the extern func prototype which are 阅读全文
摘要:
//// CCInfoPlistFileReader.m// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import "CCInfoPlistFileReader.h"static id InfoPlistObj;@implementation CCInfoPlistFileReader// not thread safe+ (id)sharedInstance{ if(InfoPlistObj == nil) {... 阅读全文
摘要:
//// CCInfoPlistFileReader.h// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import "CCPlistFileReader.h"@interface CCInfoPlistFileReader : CCPlistFileReader{}// not thread safe+ (id)sharedInstance;+ (void)rel 阅读全文
摘要:
//// CCIOS.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCIOS.h"#import "CCNSString.h"#import "CCUIDevice.h"@implementation CCIOS//获取OS版本+ (NSString *)osVersion { return [[UIDevice currentDevice] systemVersion];}// 阅读全文
摘要:
//// CCIOS.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#define IOS_ROOT_DEFAULT_PASSWORD @"alpine"@interface CCIOS : NSObject { }//获取OS版本+ (NSString *)osVersion;// 获取OS主版本号+ (NSString *)osMa... 阅读全文
摘要:
//// CCHttp.m// CCFC//// Created by xichen on 11-12-21.// Copyright 2011 ccteam. All rights reserved.//#import "CCHttp.h"#import <Foundation/NSURLRequest.h>#import <Foundation/NSURLResponse.h>@implementation CCHttp// send a synchronous GET request for a url, returns the recieve 阅读全文
摘要:
//// CCHttp.h// CCFC//// Created by xichen on 11-12-21.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCHttp : NSObject { }// send a common synchronous GET request for a url, returns the recieved data+ (NSData *)sendSynchronousGETRequest:(NSStr... 阅读全文
摘要:
//// CCGraphics.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCGraphics.h"@implementation CCGraphics// 画弧形+ (void)drawArc:(CGContextRef)ctx radius:(CGFloat)radius x:(CGFloat)x y:(CGFloat)y startAr... 阅读全文
摘要:
//// CCGraphics.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import "CCUIScreen.h"#import "CCUIColor.h"#define CCCenterPoint CGPointMake(SCREEN_WIDTH / 2, SCREEN_HEIGHT / 2)@interface CCGraphic 阅读全文
摘要:
//// CCFuntion.m// CCFC//// Created by xichen on 11-12-30.// Copyright 2011 ccteam. All rights reserved.//#import "CCFuntion.h"@implementation CCFuntion// returns whether the function exists or not+ (BOOL)isFuntionExist:(IMP)funcPtr{ return funcPtr != NULL;}@endgooglecode链接地址(会有更新):http:/. 阅读全文
摘要:
//// CCFuntion.h// CCFC//// Created by xichen on 11-12-30.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface CCFuntion : NSObject {}// returns whether the function exists or not+ (BOOL)isFuntionExist:(IMP)funcPtr;@endgooglecode链接地址(会有更新):http://code.goo 阅读全文
摘要:
//// CCFoundation.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCFoundation.h"@implementation CCFoundation@endgooglecode链接地址(会有更新):http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCFoundation.m 阅读全文