摘要:
//// 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 阅读全文