摘要:
//// CCPlistFileWritter.m// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import "CCPlistFileWritter.h"@implementation CCPlistFileWritter- (void)initWritterObjOnce{ if(_writterObj == nil) { _writterObj = [[NSMutableDictionary... 阅读全文
摘要:
//// CCPlistFileWritter.h// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import "CCPlistFileReader.h"@interface CCPlistFileWritter : CCPlistFileReader{ id _writterObj;}// for NSDictionary- (void)remov... 阅读全文
摘要:
//// CCPlistFileReader.m// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import "CCPlistFileReader.h"#import "CCFileUtil.h"@implementation CCPlistFileReader+ (NSArray *)readBundleFileToNSArray:(NSString *)fileName{ NSString *fileFullPath 阅读全文
摘要:
//// CCPlistFileReader.h// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>// just for plist file that is NSArray type or NSDictionary type@interface CCPlistFileReader : NSObject { id _inte... 阅读全文
摘要:
//// CCPlayer.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPlayer.h"@implementation CCPlayer// 调用系统播放器播放资源界面+ (MPMediaPickerController *)showIpodPlayResourceView:(id)delegate mediaType:(MPMediaTy... 阅读全文
摘要:
//// CCPlayer.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <MediaPlayer/MediaPlayer.h>@interface CCPlayer : NSObject { }// 调用系统播放器播放资源界面+ (MPMediaPickerController *)showIpodPlayResourceView:(id)delega 阅读全文
摘要:
//// CCPhoto.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPhoto.h"#import <QuartzCore/QuartzCore.h>@implementation CCPhoto// 调用系统照片库+ (UIImagePickerController *)showImagePickerView:(id)delegate imgT... 阅读全文
摘要:
//// CCPhoto.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <UIKit/UIImagePickerController.h>@interface CCPhoto : NSObject { }// 调用系统照片库+ (UIImagePickerController *)showImagePickerView:(id)delegate ... 阅读全文
摘要:
//// CCPhone.m// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import "CCPhone.h"#import "CCNSString.h"#import <CoreTelephony/CTTelephonyNetworkInfo.h>#import <CoreTelephony/CTCarrier.h>@implementation CCPhone// 拨打号码+ (BOOL)c 阅读全文
摘要:
//// CCPhone.h// CCFC//// Created by xichen on 11-12-16.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <UIKit/UIKit.h>#import "CCConfig.h"#import "CCDepend.h"#import <CoreTelephony/CTCall.h>#import "CCCommon.h" 阅读全文
摘要:
//// CCOrientation.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCOrientation.h"@implementation CCOrientation@end可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCOrientation.mgi 阅读全文
摘要:
//// CCOrientation.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>// 增加设备翻转的回调#define ADD_ORITENTATION_NOTIFICATION(idName, selectorName, objectInfo) \ [[UIDevice currentDevice] beginGeneratingDeviceOrientationN... 阅读全文
摘要:
//// CCNetwork.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCNetwork.h"@implementation CCNetwork// get the total info of network flow, if returns FALSE, the returns upFlow and downFlow value can't be used.+ (BOOL)getTotalNetworkFl 阅读全文
摘要:
//// CCNetwork.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#include <ifaddrs.h>#include <sys/socket.h>#include <net/if.h>#define MACRO_LOCAL_LOOP_IP @"127.0.0.1"@interface CCNetwork : NS 阅读全文
摘要:
//// CCNSURL.m// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSURL.h"@implementation NSURL(cc)+ (NSString *)telephonePrefix{ return @"tel://";}+ (NSString *)smsPrefix{ return @"sms://";}+ (NSString *)mailPrefix{ retu 阅读全文
摘要:
//// CCNSURL.h// CCFC//// Created by xichen on 11-12-18.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSURL(cc)+ (NSString *)telephonePrefix;+ (NSString *)smsPrefix;+ (NSString *)mailPrefix;+ (NSString *)googleMapPrefix;@end可能有更新:googlecode链接地址:htt 阅读全文
摘要:
//// CCNSTimer.m// CCFC//// Created by xichen on 11-12-28.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSTimer.h"@implementation NSTimer(cc)// create a common timer+ (NSTimer *)createCommonTimer:(id)target sel:(SEL)sel timeInterval:(NSTimeInterval)interval{ return [NSTimer s. 阅读全文
摘要:
//// CCNSTimer.h// CCFC//// Created by xichen on 11-12-28.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSTimer(cc)// create a common timer+ (NSTimer *)createCommonTimer:(id)target sel:(SEL)sel timeInterval:(NSTimeInterval)interval;// create a comm 阅读全文
摘要:
//// CCNSTimeZone.m// CCFC//// Created by xichen on 11-12-24.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSTimeZone.h"#import "CCLog.h"@implementation NSTimeZone(cc)+ (void)setTimeZone:(NSString *)zoneStr{ NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:zoneStr 阅读全文
摘要:
//// CCNSTimeZone.h// CCFC//// Created by xichen on 11-12-24.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSTimeZone(cc)+ (void)setTimeZone:(NSString *)zoneStr;@end可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/bro 阅读全文