摘要:
// // CCUIColor.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIColor.h" @implementation UIColor(cc) // 获取UIColor的RGBA的值 - (void)getRGBAValue:(CGFloat *)red green:(CGFloat *)green ... 阅读全文
摘要:
// // CCUICalloutView.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUICalloutView.h" #if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS @implementation UICalloutView(cc) @end #endif可能有更新: googlecode链接地... 阅读全文
摘要:
// // CCUIColor.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #define RGB_MAX_VALUE 255.0f #define RGBA(r, g, b, a) \ [UIColor colorWithRed:(r)/RGB_MAX_VALUE \ ... 阅读全文
摘要:
// // CCUICalloutView.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> // a demo /* .h: UICalloutView *_callout; - (void)hideDisclosure { [_callout fadeOutWithDuration:0.1f]; } - (v... 阅读全文
摘要:
// // CCUIButton.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIButton.h" @implementation UIButton(cc) // 创建UIButton, 文本居中显示 + (UIButton *)createButton:(const CGRect *)rect withTitle:(NSString *)title { ... 阅读全文
摘要:
// // CCUIBarButtonItem.m // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIBarButtonItem.h" @implementation UIBarButtonItem(cc) @end可能有更新: googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/... 阅读全文
摘要:
// // CCUIButton.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <UIKit/UIKit.h> #import "CCUIView.h" @interface UIButton(cc) // 创建UIButton, 文本居中显示 + (UIButton *)createButton:(const CGRect *)rect withTitle:(NSString... 阅读全文
摘要:
// // CCUIBarButtonItem.h // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIBarButtonItem(cc) #if CC_ENABLE_PUBLIC_API_EXTEND // systemItem argument can be passed with: 100 ~ 110 ... 阅读全文
摘要:
// // CCUIApplication.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIApplication.h" @implementation UIApplication(cc) - (void)showStatusBar { [self setStatusBarHidden:FALSE]; } - (void)hide... 阅读全文
摘要:
// // CCUIAlertView.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIAlertView.h" @implementation UIAlertView(cc) // 显示消息框 + (UIAlertView *)showAlertView:(NSString *)title msg:(NSStr... 阅读全文
摘要:
// // CCUIApplication.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIApplication(cc) - (void)showStatusBar; - (void)hideStatusBar; - (void)showNetworkActivityInStatusBar; -... 阅读全文
摘要:
// // CCUIAlertView.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIAlertView(cc) // 显示消息框 + (UIAlertView *)showAlertView:(NSString *)title msg:(... 阅读全文
摘要:
// // CCUIAlertTextView.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIAlertTextView.h" #import <QuartzCore/QuartzCore.h> @implementation CCUIAlertTextView - (id)initWithTitle:(NSString *)title deleg... 阅读全文
摘要:
// // CCUIAlertTextView.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <UIKit/UIKit.h> #include <Foundation/Foundation.h> // a kind of alertView that contains one UITextField // **it will make the application not to suppo... 阅读全文
摘要:
// // CCUIAlertActivityView.m // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIAlertActivityView.h" #import "CCNSNumber.h" #import "CCUIView.h" #import "CCCommon.h" #import "CCLog.h" @impleme 阅读全文
摘要:
// // CCUIAlertActivityView.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface CCUIAlertActivityView : UIView { UIAlertView *_alertView; UIA... 阅读全文
摘要:
// // CCUIActivityIndicatorView.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIActivityIndicatorView(cc) //创建系统等待状态图标 + (UIActivityIndicatorView *)createActivityIndicatorView... 阅读全文
摘要:
// // CCUIActivityIndicatorView.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIActivityIndicatorView.h" @implementation UIActivityIndicatorView(cc) //创建系统等待状态图标 + (UIActivityIndicatorView *)createActivityIndi... 阅读全文
摘要:
// // CCUIActionSheet.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIActionSheet.h" @implementation UIActionSheet(cc) // create a common actionsheet + (UIActionSheet *)createCommonActionsheet:(NSString *)aTitl... 阅读全文