01 2012 档案

摘要:// // CCUIWindow.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import "CCConfig.h" @interface UIWindow(cc) //+ (UIWindow *)addImgToStatusBar:(UIImage *)img withRect:(CGRect)imgRect; + (void)addI... 阅读全文
posted @ 2012-01-15 14:20 cc_team 阅读(231) 评论(0) 推荐(0)
摘要:// // CCUIViewController.m // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIViewController.h" @implementation UIViewController(cc) - (UIBarButtonItem *)addLeftBarButtonItem:aTitle ... 阅读全文
posted @ 2012-01-15 14:19 cc_team 阅读(253) 评论(0) 推荐(0)
摘要:// // CCUIView.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIView.h" #import <QuartzCore/QuartzCore.h> @interface UIView(ccPrivate) - (id)text; - (id)font; @end @implementation UIView(cc) @dynamic x, y,... 阅读全文
posted @ 2012-01-15 14:18 cc_team 阅读(498) 评论(0) 推荐(1)
摘要:// // CCUIViewController.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #define MACRO_COMMON_LOAD_VIEW \ - (void)loadView \ { ... 阅读全文
posted @ 2012-01-15 14:18 cc_team 阅读(243) 评论(0) 推荐(0)
摘要:// // CCUIView.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import "CCUIButton.h" //创建UI控件的宏 #define UI_ALLOC_CREATE(UIctlName, x, y, width, height) [[UIctlName alloc] initWithFrame:CGRectMake((x) 阅读全文
posted @ 2012-01-15 14:17 cc_team 阅读(372) 评论(0) 推荐(0)
摘要:1. // 2. // CCUIToolbar.h 3. // CCFC 4. // 5. // Created by xichen on 12-1-3. 6. // Copyright 2012 ccteam. All rights reserved. 7. // 8. 9. #import <Foundation/Foundation.h> 10. #import <UIKit/UIToolbar.h> 11. 12. @interface UIToolbar(cc) 13. 14. //... 阅读全文
posted @ 2012-01-14 09:43 cc_team 阅读(152) 评论(0) 推荐(0)
摘要:# //# // CCUIToolbar.m # // CCFC # //# // Created by xichen on 12-1-3. # // Copyright 2012 ccteam. All rights reserved. # //# # #import "CCUIToolBar.h" # # # @implementation UIToolbar(cc) # # // create a common toolbar # + (UIToolbar *)createCommonToolbar:(CGRect)rect items:(NSArr... 阅读全文
posted @ 2012-01-14 09:43 cc_team 阅读(180) 评论(0) 推荐(0)
摘要:# //# // CCUITextView.m # // CCFC # //# // Created by xichen on 11-12-22. # // Copyright 2011 ccteam. All rights reserved. # //# # #import "CCUITextView.h" # #import "CCUIView.h" # #import "CCLog.h" # # @implementation UITextView(cc) # # + (UITextView *)createCommonText 阅读全文
posted @ 2012-01-14 09:42 cc_team 阅读(230) 评论(0) 推荐(0)
摘要:1. // 2. // CCUITextView.h 3. // CCFC 4. // 5. // Created by xichen on 11-12-22. 6. // Copyright 2011 ccteam. All rights reserved. 7. // 8. 9. #import <Foundation/Foundation.h> 10. 11. 12. @interface UITextView(cc) 13. 14. + (UITextView *)createCom... 阅读全文
posted @ 2012-01-14 09:41 cc_team 阅读(175) 评论(0) 推荐(0)
摘要:# //# // CCUITextField.m # // CCFC # //# // Created by xichen on 11-12-28. # // Copyright 2011 ccteam. All rights reserved. # //# # #import "CCUITextField.h" # # # @implementation UITextField(cc) # # // create a common textField # + (UITextField *)createCommonTextField:(CGRect)rec... 阅读全文
posted @ 2012-01-14 09:40 cc_team 阅读(276) 评论(0) 推荐(0)
摘要:// // CCUITableView.m // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import "CCUITableView.h" #import "CCUIView.h" @implementation UITableView(cc) - (void)scrollToBottom:(BOOL)animated { NSUInteger lastSection = [self... 阅读全文
posted @ 2012-01-13 19:11 cc_team 阅读(165) 评论(0) 推荐(0)
摘要:// // CCUITextField.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UITextField(cc) // create a common textField + (UITextField *)createCommonTextField:(CGRect)rect; // set ... 阅读全文
posted @ 2012-01-13 19:11 cc_team 阅读(150) 评论(0) 推荐(0)
摘要:// // CCUISlider.m // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import "CCUISlider.h" @implementation UISlider(cc) // create a common UISlider + (UISlider *)createCommonSlider:(CGRect)rect target:(id)target sel:(SEL)sel ... 阅读全文
posted @ 2012-01-13 19:10 cc_team 阅读(205) 评论(0) 推荐(0)
摘要:// // CCUITableView.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import "CCCommon.h" @interface UITableView(cc) - (void)scrollToBottom:(BOOL)animated; // get the vertical scroll indica... 阅读全文
posted @ 2012-01-13 19:10 cc_team 阅读(210) 评论(0) 推荐(0)
摘要:想象力和知识究竟有哪个更重要?也许仁者见仁智者见智,但是在学习工作的过程中,不断的思考它们之间的关系,最后得出一个结论,敢说且有能力说想象力比知识更重要的人也许都是真正的大师,这个世界上真的没多少;同理,后面那个问句也是这个结论。 在任何一个领域,都会有这样或者那样的代表,可以说他们的见解、理论代表着最高水平,也许有更好的,但是可能还未被证实或者广泛认可和使用。知识基础上的想象力可能意味着对知识的扩展,或者对于未来知识的形式的一些新观点看法,也许是改革,甚至是革命。但是问题是,有多少人具备这样的能力?提出问题和解决问题的关系也类似,就拿软件来说,在工程和项目过程中有很多问题需要解决,解决这.. 阅读全文
posted @ 2012-01-13 19:09 cc_team 阅读(316) 评论(0) 推荐(0)
摘要:// // CCUISlider.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UISlider(cc) // create a common UISlider + (UISlider *)createCommonSlider:(CGRect)rect target:(id)target sel:(SEL... 阅读全文
posted @ 2012-01-13 19:09 cc_team 阅读(129) 评论(0) 推荐(0)
摘要:首先声明,本人不是kuaidail软件的实现作者,是在做相关的项目过程中,想到了也实现了类似的功能,kuaidail软件本身并没有公布相关实现细节,所以在此分享一下。在这里,可以了解kuaidail软件的一些安装效果:http://bbs.app43.com/thread-15553-1-1.html一、总述 kuaidail运行于越狱平台的ios系统上,与其说它是一个软件,说其是插件更合适不过,因为用户看到的仅仅是它的设置界面和优化了电话、短信等功能的一些形式。它很方便地把iphone用户对于联系人的归属地,联系人的图片,编辑通话记录,截获短信,显示陌生人归属地,截获电话并可以列入黑名单白. 阅读全文
posted @ 2012-01-13 19:08 cc_team 阅读(1403) 评论(0) 推荐(1)
摘要:// // CCUISegmentedControl.h // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UISegmentedControl(cc) #if CC_ENABLE_PUBLIC_API_EXTEND // you can set 3 to it. @property(nonatomic) in... 阅读全文
posted @ 2012-01-12 09:47 cc_team 阅读(146) 评论(0) 推荐(0)
摘要:// // CCUISegmentedControl.m // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import "CCUISegmentedControl.h" @implementation UISegmentedControl(cc) @end 可能有更新: googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccte... 阅读全文
posted @ 2012-01-12 09:47 cc_team 阅读(132) 评论(0) 推荐(0)
摘要:// // CCUISearchBar.m // CCFC // // Created by xichen on 11-12-27. // Copyright 2011 ccteam. All rights reserved. // #import "CCUISearchBar.h" @implementation UISearchBar(cc) // set the searchBar to be transparent - (void)setTransparent { [[self.subviews objectA... 阅读全文
posted @ 2012-01-12 09:46 cc_team 阅读(185) 评论(0) 推荐(0)
摘要:// // CCUISearchBar.h // CCFC // // Created by xichen on 11-12-27. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UISearchBar(cc) // set the searchBar to be transparent - (void)setTransparent; // create a common searchB... 阅读全文
posted @ 2012-01-12 09:45 cc_team 阅读(151) 评论(0) 推荐(0)
摘要:// // CCUIScreen.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIScreen.h" @implementation UIScreen(cc) - (CGFloat)width { return [[UIScreen mainScreen] bounds].size.width; } - (CGFloat)height { ... 阅读全文
posted @ 2012-01-12 09:44 cc_team 阅读(204) 评论(0) 推荐(0)
摘要:# //# // CCUIProgressHUD.m # // CCFC # //# // Created by xichen on 11-12-23. # // Copyright 2011 ccteam. All rights reserved. # //# # #import "CCUIProgressHUD.h" # # #if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS # # @implementation UIProgressHUD(cc) # # @end # # #endif可... 阅读全文
posted @ 2012-01-11 10:01 cc_team 阅读(127) 评论(0) 推荐(0)
摘要:# //# // CCUIScreen.h # // CCFC # //# // Created by xichen on 11-12-16. # // Copyright 2011年 ccteam. All rights reserved. # //# # #import <Foundation/Foundation.h> # # // the width and height of the screen # #define MACRO_SCREEN_WIDTH ([[UIScreen mainScreen... 阅读全文
posted @ 2012-01-11 10:01 cc_team 阅读(165) 评论(0) 推荐(0)
摘要:# //# // CCUIProgressHUD.h # // CCFC # //# // Created by xichen on 11-12-23. # // Copyright 2011 ccteam. All rights reserved. # //# # #import <Foundation/Foundation.h> # # #if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS # # // a demo # /* # .h: # id progH... 阅读全文
posted @ 2012-01-11 10:00 cc_team 阅读(456) 评论(0) 推荐(1)
摘要:# //# // CCNSPasteboard.h # // CCFC # //# // Created by xichen on 11-12-20. # // Copyright 2011 ccteam. All rights reserved. # //# # #import <Foundation/Foundation.h> # # # @interface UIPasteboard(cc) # # + (void)setString:(NSString *)str; # # @end可能有更新:googlecode链接地址:http://cod... 阅读全文
posted @ 2012-01-11 09:59 cc_team 阅读(155) 评论(0) 推荐(0)
摘要:# //# // CCNSPasteboard.m # // CCFC # //# // Created by xichen on 11-12-20. # // Copyright 2011 ccteam. All rights reserved. # //# # #import "CCUIPasteboard.h" # # # @implementation UIPasteboard(cc) # # + (void)setString:(NSString *)str # { # UIPasteboard *board = [UIPast... 阅读全文
posted @ 2012-01-11 09:59 cc_team 阅读(130) 评论(0) 推荐(0)
摘要:// // CCUINavigationBar.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUINavigationBar.h" #import "CCConfig.h" // 如果你希望可以自定义UINavigationBar的显示,那么ENABLE_UINAVIGATION_BAR_REDRAW被设置成1,否则设置成0 #if ENABLE_UINAVIGATION_BAR_RE 阅读全文
posted @ 2012-01-10 09:50 cc_team 阅读(159) 评论(0) 推荐(0)
摘要:// // CCUINavigationBar.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <UIKit/UIKit.h> 可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUINavigationBar.h github地址: https:... 阅读全文
posted @ 2012-01-10 09:49 cc_team 阅读(102) 评论(0) 推荐(0)
摘要:// // CCUILocalNotification.m // CCFC // // Created by xichen on 11-12-24. // Copyright 2011 ccteam. All rights reserved. // #import "CCUILocalNotification.h" @implementation UILocalNotification(cc) // create a common local notification + (UILocalNotification *)createComm... 阅读全文
posted @ 2012-01-10 09:48 cc_team 阅读(153) 评论(0) 推荐(0)
摘要:// // CCUILocalNotification.h // CCFC // // Created by xichen on 11-12-24. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UILocalNotification(cc) // create a common local notification + (UILocalNotification *)createCommonNot... 阅读全文
posted @ 2012-01-10 09:47 cc_team 阅读(158) 评论(0) 推荐(0)
摘要:// // CCUILabel.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUILabel.h" @implementation UILabel(cc) // 创建UILabel, 文本居中显示 + (UILabel *)createLabel:(const CGRect *)rect withTitle:(NSString *)title { return [U... 阅读全文
posted @ 2012-01-10 09:46 cc_team 阅读(136) 评论(0) 推荐(0)
摘要:// // CCUILabel.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <UIKit/UIKit.h> #import "CCUIView.h" #import "CCConfig.h" @interface UILabel(cc) // 创建UILabel, 文本居中显示 + (UILabel *)createLabel:(const CGRect *)rect wit. 阅读全文
posted @ 2012-01-09 09:12 cc_team 阅读(181) 评论(0) 推荐(0)
摘要:// // CCUIKit.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIKit.h" @implementation CCUIKit @end可能有更新: googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCUIKit.... 阅读全文
posted @ 2012-01-09 09:11 cc_team 阅读(157) 评论(0) 推荐(0)
摘要:// // CCUIImageView.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIImageView.h" #import <CoreGraphics/CoreGraphics.h> #import <QuartzCore/QuartzCore.h> @implementation UIImageView(cc) - (void)rotate:(float)angle ... 阅读全文
posted @ 2012-01-09 09:10 cc_team 阅读(215) 评论(0) 推荐(0)
摘要:// // CCUIKit.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #include "CCUIView.h" #include "CCUITextView.h" #include "CCUILabel.h" #include "CCUINavigationBar.h" #includ 阅读全文
posted @ 2012-01-09 09:10 cc_team 阅读(136) 评论(0) 推荐(0)
摘要:// // CCUIImageView.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIImageView(cc) // rotate in indicated angle - (void)rotate:(float)angle; //- (void)setRotatePoint:(CGPoi... 阅读全文
posted @ 2012-01-09 09:09 cc_team 阅读(178) 评论(0) 推荐(0)
摘要:// // CCUIImage.m // CCFC // // Created by xichen on 11-12-24. // Copyright 2011 ccteam. All rights reserved. // @implementation UIImage(cc) // returns the scaled image - (UIImage *)scale:(float)scaleSize { UIGraphicsBeginImageContext( ... 阅读全文
posted @ 2012-01-08 19:38 cc_team 阅读(172) 评论(0) 推荐(0)
摘要:// // CCUIImage.h // CCFC_IPHONE // // Created by xuchen(陈旭), xichen(陈曦), qq:511272827 on 10-10-31. // Copyright 2010 cc_team. All rights reserved. // #ifndef CC_UI_IMAGE_H #define CC_UI_IMAGE_H #ifdef __OBJC__ #import "CCConfig.h" #define CREATE_UIIMAGE(imgPath) ... 阅读全文
posted @ 2012-01-08 19:37 cc_team 阅读(265) 评论(0) 推荐(0)
摘要:// // CCUIHilightedLabel.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIHilightedLabel.h" @implementation CCUIHilightedLabel @synthesize isHilighted = _isHilighted; @synthesize disableHilight = _disableHi... 阅读全文
posted @ 2012-01-08 19:36 cc_team 阅读(225) 评论(0) 推荐(0)
摘要:// // CCUIHilightedLabel.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011 ccteam. All rights reserved. // #import <UIKit/UIKit.h> @class CCUIHilightedLabel; @protocol UIHilightedLabelDelegate - (void)onHilightedLabelTouchedBegan:(CCUIHilightedLabel *)hilig... 阅读全文
posted @ 2012-01-08 19:35 cc_team 阅读(362) 评论(0) 推荐(0)
摘要:// // CCUIHardware.m // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import "CCUIHardware.h" #if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS @implementation UIHardware(cc) @end #endif 可能有更新: googlecode链接地址:http:/... 阅读全文
posted @ 2012-01-08 19:34 cc_team 阅读(115) 评论(0) 推荐(0)
摘要:// // CCUIHardware.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import "CCConfig.h" #if CC_ENABLE_PRIVATE_API && CC_COMPILE_PRIVATE_CLASS @interface UIHardware : NSObject { } @... 阅读全文
posted @ 2012-01-07 10:22 cc_team 阅读(164) 评论(0) 推荐(0)
摘要:// // CCUIFont.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIFont.h" #import "CCLog.h" @implementation UIFont(cc) + (void)logAllFonts { NSArray *familyNames = [UIFont familyNames]; LOG_ARR(fam... 阅读全文
posted @ 2012-01-07 10:22 cc_team 阅读(163) 评论(0) 推荐(0)
摘要:// // CCUIFont.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> // 创建字体对象 #define CREATE_FONT(fontSize) [UIFont systemFontOfSize:(fontSize)] @interface UIFont(cc) + (void)logAllFonts; ... 阅读全文
posted @ 2012-01-07 10:21 cc_team 阅读(124) 评论(0) 推荐(0)
摘要:// // CCUIDevice.h // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import "CCConfig.h" #import <mach/mach.h> // 判断设备是480*320还是960*640 #define IS_RETINA \ ([UIScreen instancesRespondToSelector... 阅读全文
posted @ 2012-01-07 10:18 cc_team 阅读(197) 评论(0) 推荐(0)
摘要:// // CCUIDevice.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIDevice.h" #import "CCIOS.h" #import "CCFileUtil.h" #import <AudioToolbox/AudioToolbox.h> #import <ifaddrs.h> #import <arpa/inet 阅读全文
posted @ 2012-01-07 10:18 cc_team 阅读(209) 评论(0) 推荐(0)
摘要:// // 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 ... 阅读全文
posted @ 2012-01-06 09:56 cc_team 阅读(252) 评论(0) 推荐(0)
摘要:// // 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 \ ... 阅读全文
posted @ 2012-01-06 09:55 cc_team 阅读(220) 评论(0) 推荐(0)
摘要:// // 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链接地... 阅读全文
posted @ 2012-01-06 09:55 cc_team 阅读(134) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:54 cc_team 阅读(202) 评论(0) 推荐(0)
摘要:// // 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 { ... 阅读全文
posted @ 2012-01-06 09:53 cc_team 阅读(213) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:52 cc_team 阅读(238) 评论(0) 推荐(0)
摘要:// // 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/... 阅读全文
posted @ 2012-01-06 09:52 cc_team 阅读(180) 评论(0) 推荐(0)
摘要:// // 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 ... 阅读全文
posted @ 2012-01-06 09:51 cc_team 阅读(131) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:50 cc_team 阅读(187) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:49 cc_team 阅读(182) 评论(0) 推荐(0)
摘要:// // 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; -... 阅读全文
posted @ 2012-01-06 09:49 cc_team 阅读(239) 评论(0) 推荐(0)
摘要:// // 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:(... 阅读全文
posted @ 2012-01-06 09:48 cc_team 阅读(185) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:47 cc_team 阅读(184) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:47 cc_team 阅读(194) 评论(0) 推荐(0)
摘要:// // 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 阅读全文
posted @ 2012-01-06 09:40 cc_team 阅读(184) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:39 cc_team 阅读(186) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:38 cc_team 阅读(179) 评论(0) 推荐(0)
摘要:// // CCUIActivityIndicatorView.m // CCFC // // Created by xichen on 11-12-17. // Copyright 2011年 ccteam. All rights reserved. // #import "CCUIActivityIndicatorView.h" @implementation UIActivityIndicatorView(cc) //创建系统等待状态图标 + (UIActivityIndicatorView *)createActivityIndi... 阅读全文
posted @ 2012-01-06 09:38 cc_team 阅读(162) 评论(0) 推荐(0)
摘要:// // 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... 阅读全文
posted @ 2012-01-06 09:37 cc_team 阅读(179) 评论(0) 推荐(0)
摘要:// // CCUIActionSheet.h // CCFC // // Created by xichen on 11-12-23. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface UIActionSheet(cc) // create a common actionsheet + (UIActionSheet *)createCommonActionsheet:(NSString *)aTit... 阅读全文
posted @ 2012-01-05 14:42 cc_team 阅读(172) 评论(0) 推荐(0)
摘要:// // CCTime.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import "CCTime.h" @implementation CCTime @end可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCTime.m git... 阅读全文
posted @ 2012-01-05 14:42 cc_team 阅读(141) 评论(0) 推荐(0)
摘要:// // CCTime.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #define IS_LEAP_YEAR(year) ((year) % 4 == 0 && (year) % 100 != 0 \ || (year) % 400 == 0) #define DAY... 阅读全文
posted @ 2012-01-05 14:41 cc_team 阅读(169) 评论(0) 推荐(0)
摘要:// // CCTestMacros.h // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // // test file should include this file for compiling right codes! #import <Foundation/Foundation.h> #ifndef CC_ENABLE_TEST_GOOGLE_MAP #define CC_ENABLE_TES... 阅读全文
posted @ 2012-01-05 14:40 cc_team 阅读(155) 评论(0) 推荐(0)
摘要:// // CCTestMacros.m // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import "CCTestMacros.h" @implementation CCTestMacros @end 可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/... 阅读全文
posted @ 2012-01-05 14:40 cc_team 阅读(148) 评论(0) 推荐(0)
摘要:// // CCTableTipView.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011 ccteam. All rights reserved. // #import "CCTableTipView.h" #import <QuartzCore/QuartzCore.h> @implementation CCTableTipView @dynamic delegate; - (id)initWithFrame:(CGRect)frame withTabl... 阅读全文
posted @ 2012-01-05 14:39 cc_team 阅读(169) 评论(0) 推荐(0)
摘要:// // CCTableTipView.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011 ccteam. All rights reserved. // #import <UIKit/UIKit.h> #import "CCBaseTipView.h" // a kind of CCBaseTipView that owns a tableView // for linking, you should add QuartzCore.framewrok @interface... 阅读全文
posted @ 2012-01-05 14:38 cc_team 阅读(200) 评论(0) 推荐(0)
摘要:// // System.h // PhoneManager // // Created by chenxu on 11-9-9. // Copyright 2011年 __MyComPanyName__. All rights reserved. // #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <mach/mach.h> #include <ifaddrs.h> #include <sys/socket.h> #include <net/ 阅读全文
posted @ 2012-01-05 14:37 cc_team 阅读(275) 评论(0) 推荐(0)
摘要:// // System.m // PhoneManager // // Created by chenxu on 11-9-9. // Copyright 2011年 __MyComPanyName__. All rights reserved. // #import "CCSystem.h" #import "ifaddrs.h" #import "arpa/inet.h" #import <SystemConfiguration/SCSchemaDefinitions.h> #import <sys/sysct 阅读全文
posted @ 2012-01-05 14:37 cc_team 阅读(233) 评论(0) 推荐(0)
摘要:// // CCSqlite3.m // CCFC // // Created by xichen on 11-12-18. // Copyright 2011 ccteam. All rights reserved. // #import "CCSqlite3.h" @implementation CCSqlite3 @synthesize delegate = _delegate; @synthesize statement = _statement; - (id)initWithSqliteDBFullPath:(NSSt... 阅读全文
posted @ 2012-01-05 14:36 cc_team 阅读(149) 评论(0) 推荐(0)
摘要:// // CCSqlite3.h // CCFC // // Created by xichen on 11-12-18. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import <sqlite3.h> @class CCSqlite3; @protocol CCSqlite3Delegate // the row starts with 1. - (void)onCCSqlite3AnotherR... 阅读全文
posted @ 2012-01-05 14:35 cc_team 阅读(202) 评论(0) 推荐(0)
摘要:// // CCSound.h // CCFC // // Created by xichen on 12-1-3. // Copyright 2012 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface CCSound : NSObject { } // add a volume changed observer event // the selector will be only called when the ipod... 阅读全文
posted @ 2012-01-05 14:34 cc_team 阅读(149) 评论(0) 推荐(0)
摘要:// // CCSound.m // CCFC // // Created by xichen on 12-1-3. // Copyright 2012 ccteam. All rights reserved. // #import "CCSound.h" #import <MediaPlayer/MediaPlayer.h> @implementation CCSound // add a volume changed observer event // the selector will be only called when th... 阅读全文
posted @ 2012-01-05 14:34 cc_team 阅读(185) 评论(0) 推荐(0)
摘要:// // CCSize.m // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import "CCSize.h" #import "CCCommon.h" #import "CCNSNumber.h" @implementation CCSize - (id)initWithWidth:(CGFloat)aWidth withHeight:(CGFloat)aHeight { ... 阅读全文
posted @ 2012-01-05 14:33 cc_team 阅读(203) 评论(0) 推荐(0)
摘要:// // CCSize.h // CCFC // // Created by xichen on 11-12-28. // Copyright 2011 ccteam. All rights reserved. // #import <Foundation/Foundation.h> @interface CCSize : NSObject { @public CGFloat width; CGFloat height; } - (id)initWithWidth:(CGFloat)width ... 阅读全文
posted @ 2012-01-05 14:32 cc_team 阅读(172) 评论(0) 推荐(0)
摘要:// // CCSMS.m // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import "CCSMS.h" #if CC_ENABLE_PRIVATE_API NSString* const SIMStatusReady = @"kCTSIMSupportSIMStatusReady"; // SIM card is ok NSString* const SIMStatusNotIns... 阅读全文
posted @ 2012-01-05 14:31 cc_team 阅读(195) 评论(0) 推荐(0)
摘要:// // CCSMS.h // CCFC // // Created by xichen on 11-12-16. // Copyright 2011年 ccteam. All rights reserved. // #import <Foundation/Foundation.h> #import <MessageUI/MessageUI.h> #import "CCConfig.h" #import "CCDepend.h" #import "CCCommon.h" #if CC_ENABLE_PRIVA 阅读全文
posted @ 2012-01-05 14:30 cc_team 阅读(196) 评论(0) 推荐(0)
摘要:// // CCRuntime.m // CCFC // // Created by xichen on 11-12-30. // Copyright 2011 ccteam. All rights reserved. // #import "CCRuntime.h" @implementation CCRuntime // get the var of the obj + (Ivar)getObjVar:(id)obj varname:(const char *)varname ret:(void **)ret { ... 阅读全文
posted @ 2012-01-05 14:29 cc_team 阅读(152) 评论(0) 推荐(0)
摘要://// 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 阅读(116) 评论(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 阅读(179) 评论(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 阅读(225) 评论(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 阅读(222) 评论(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 阅读(204) 评论(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 阅读(206) 评论(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 阅读(128) 评论(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 阅读(211) 评论(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 阅读(194) 评论(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 阅读(223) 评论(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 阅读(172) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:49 cc_team 阅读(191) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:47 cc_team 阅读(198) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:46 cc_team 阅读(199) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:45 cc_team 阅读(186) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:44 cc_team 阅读(232) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:43 cc_team 阅读(229) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:41 cc_team 阅读(246) 评论(0) 推荐(0)
摘要://// 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 ... 阅读全文
posted @ 2012-01-02 15:40 cc_team 阅读(158) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:39 cc_team 阅读(303) 评论(0) 推荐(0)
摘要://// 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" 阅读全文
posted @ 2012-01-02 15:37 cc_team 阅读(281) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:36 cc_team 阅读(134) 评论(0) 推荐(0)
摘要://// 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... 阅读全文
posted @ 2012-01-02 15:35 cc_team 阅读(152) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:34 cc_team 阅读(186) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:33 cc_team 阅读(197) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:32 cc_team 阅读(188) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:31 cc_team 阅读(146) 评论(0) 推荐(0)
摘要://// 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. 阅读全文
posted @ 2012-01-02 15:30 cc_team 阅读(167) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:29 cc_team 阅读(130) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:27 cc_team 阅读(153) 评论(0) 推荐(0)
摘要://// 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 阅读全文
posted @ 2012-01-02 15:26 cc_team 阅读(136) 评论(0) 推荐(0)
摘要://// CCNSThread.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSThread.h"@implementation CCNSThread@end可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-codes-ccteam/source/browse/trunk/CCFC/files/CCNSThread.mgithub地址: http 阅读全文
posted @ 2012-01-01 14:29 cc_team 阅读(125) 评论(0) 推荐(0)
摘要://// CCNSThread.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#define SLEEP(seconds) [NSThread sleepForTimeInterval:(seconds)]// 委托主线程执行#define PERFORM_ON_MAIN_THREAD(obj, func, withObj, isWaitUntilDone) \ ... 阅读全文
posted @ 2012-01-01 14:28 cc_team 阅读(145) 评论(0) 推荐(0)
摘要://// CCNSString.m// CCFC_IPHONE//// Created by xuchen(陈旭), xichen(陈曦), qq:511272827 on 10-11-15.// Copyright 2010 cc_team. All rights reserved.// #include <wchar.h>#ifdef __OBJC__#import "CCNSString.h"#import "CCLog.h"@implementation NSString(cc)// 获取字符在字符串第一次出现的位置- (NSInte 阅读全文
posted @ 2012-01-01 14:27 cc_team 阅读(254) 评论(0) 推荐(0)
摘要://// CCNSString.h// CCFC_IPHONE//// Created by xuchen(陈旭), xichen(陈曦), qq:511272827 on 10-11-15.// Copyright 2010 cc_team. All rights reserved.//#ifndef CC_NSSTRING#define CC_NSSTRING#ifdef __OBJC__#import <Foundation/Foundation.h>#define PASCAL_STR %.*s#de... 阅读全文
posted @ 2012-01-01 14:25 cc_team 阅读(256) 评论(0) 推荐(0)
摘要://// CCNSRegularExpression.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSRegularExpression.h"@implementation NSRegularExpression(cc)// get the common result array with pattern in the string: str;// returns the array of "NSTextC 阅读全文
posted @ 2012-01-01 14:24 cc_team 阅读(168) 评论(0) 推荐(0)
摘要://// CCNSRegularExpression.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSRegularExpression(cc) // get the common result array with pattern in the string: str;// returns the array of "NSTextCheckingR 阅读全文
posted @ 2012-01-01 14:23 cc_team 阅读(138) 评论(0) 推荐(0)
摘要://// CCNSPredicate.m// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSPredicate.h"@implementation NSPredicate(cc)// returns whether the str is in accordance with the format+ (BOOL)isValidFormat:(NSString *)str withFormat:(NSString *)form 阅读全文
posted @ 2012-01-01 12:11 cc_team 阅读(185) 评论(0) 推荐(0)
摘要://// CCNSPredicate.h// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSPredicate(cc)// returns whether the str is in accordance with the format+ (BOOL)isValidFormat:(NSString *)str withFormat:(NSString *)forma 阅读全文
posted @ 2012-01-01 12:09 cc_team 阅读(128) 评论(0) 推荐(0)
摘要://// CCNSObject.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSObject.h"@implementation NSObject(cc)- (void)showRetainCount{ NSLog(@"%@'s retainCount is: %d", self, [self retainCount]);}- (IMP)getFuncPtr:(SEL)sel{ retu 阅读全文
posted @ 2012-01-01 12:04 cc_team 阅读(150) 评论(0) 推荐(0)
摘要://// CCNSObject.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#define SHOW_RETAIN_COUNT(obj) NSLog(@"retainCount is: %d", [(obj) retainCount])#define SHOW_RETAIN_COUNT_EX(obj, objStr) \ ... 阅读全文
posted @ 2012-01-01 12:03 cc_team 阅读(165) 评论(0) 推荐(0)
摘要://// CCNSNumber.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSNumber.h"#import <math.h>@implementation NSNumber(cc)- (BOOL)floatEqualToZero{ return FLOAT_EQUAL_TO_ZERO([self floatValue]);}- (BOOL)floatEqualToFloat:(NSNumber * 阅读全文
posted @ 2012-01-01 12:02 cc_team 阅读(242) 评论(0) 推荐(0)
摘要://// CCNSNumber.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>//单精度浮点数是否可以看成等于0 (默认精确到小数点第六位)#define FLOAT_EQUAL_TO_ZERO(floatNumber) \ (fabsf((float)(floatNumber) - 0.0f) < (float)1e-6)// 判断两个单... 阅读全文
posted @ 2012-01-01 11:56 cc_team 阅读(226) 评论(0) 推荐(0)
摘要://// CCNSNotificationCenter.m// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSNotificationCenter.h"@implementation NSNotificationCenter(cc) + (void)defaultCenterAddObserver:(id)observer selector... 阅读全文
posted @ 2012-01-01 11:54 cc_team 阅读(158) 评论(0) 推荐(0)
摘要://// CCNSNotificationCenter.h// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSNotificationCenter(cc) + (void)defaultCenterAddObserver:(id)observer selector:(SEL)... 阅读全文
posted @ 2012-01-01 11:53 cc_team 阅读(137) 评论(0) 推荐(0)
摘要://// CCNSLocale.m// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSLocale.h"@implementation NSLocale(cc)+ (NSString *)localeLanguageCode{ NSLocale *currentLocale = [NSLocale currentLocale]; return [currentLocale objectForKey:NSLo... 阅读全文
posted @ 2012-01-01 11:52 cc_team 阅读(168) 评论(0) 推荐(0)
摘要://// CCNSLocale.h// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSLocale(cc)+ (NSString *)localeLanguageCode;+ (NSString *)localeCountryCode;@end可能有更新:googlecode链接地址:http://code.google.com/p/iphone-common-co 阅读全文
posted @ 2012-01-01 11:51 cc_team 阅读(129) 评论(0) 推荐(0)
摘要://// CCNSEnumerator.m// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import "CCNSEnumerator.h"@implementation NSEnumerator(cc)- (void)enumForSelector:(id)delegate selector:(SEL)selector{ id obj; while (obj = [self nextObject]) { ... 阅读全文
posted @ 2012-01-01 11:50 cc_team 阅读(160) 评论(0) 推荐(0)
摘要://// CCNSEnumerator.h// CCFC//// Created by xichen on 11-12-27.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSEnumerator(cc)- (void)enumForSelector:(id)delegate selector:(SEL)selector;- (void)enumForSelector:(id)delegate selector:(SEL)selector use 阅读全文
posted @ 2012-01-01 11:49 cc_team 阅读(129) 评论(0) 推荐(0)
摘要://// CCNSDate.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSDate.h"@implementation NSDate(cc)// 获取系统时间(yyyy-MM-dd HH:mm:ss.SSS格式)+ (NSString *)getSystemTimeStr{ NSDateFormatter *dateFormatter = [NSDateFormatter new]; [dateF... 阅读全文
posted @ 2012-01-01 11:48 cc_team 阅读(186) 评论(0) 推荐(0)
摘要://// CCNSDate.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSDate(cc) // 获取系统时间(yyyy-MM-dd HH:mm:ss.SSS格式)+ (NSString *)getSystemTimeStr;// print current time using printf func+ (void)printCurrentTime;/. 阅读全文
posted @ 2012-01-01 11:46 cc_team 阅读(204) 评论(0) 推荐(0)
摘要://// CCNSData.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSData.h"@implementation NSData(cc)// 将UTF8格式的数据进行URL编码,返回编码后的总字节- (int)URLEncode:(char *)dest len:(const int)destLen{ int i; int j = 0; char ch; char *... 阅读全文
posted @ 2012-01-01 11:45 cc_team 阅读(233) 评论(0) 推荐(0)
摘要://// CCNSData.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>typedef enum { NSDATA_UNIT_ONE = 1, NSDATA_UNIT_TWO = 2, NSDATA_UNIT_FOUR = 4, NSDATA_UNIT_MAX}NSD... 阅读全文
posted @ 2012-01-01 11:44 cc_team 阅读(173) 评论(0) 推荐(0)
摘要://// CCNSCalendar.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSCalendar.h"@implementation NSCalendar(cc)+ (id)GregorianCalendar{ return [[[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar] autorelease];}- (NSDateCo 阅读全文
posted @ 2012-01-01 11:43 cc_team 阅读(163) 评论(0) 推荐(0)
摘要://// CCNSCalendar.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSCalendar(cc) + (id)GregorianCalendar;- (NSDateComponents *)getComponents;// you should call this immediately after getComponents method t. 阅读全文
posted @ 2012-01-01 11:42 cc_team 阅读(164) 评论(0) 推荐(0)
摘要://// CCNSArray.m// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import "CCNSArray.h"#import "CCNSObject.h"@implementation NSArray(cc)// 判断一个对象指针(不是对象的值)是否在数组中存在- (BOOL)isPointerExistsInArray:(id)element{ for(id temp in self) { ... 阅读全文
posted @ 2012-01-01 11:40 cc_team 阅读(222) 评论(0) 推荐(0)
摘要://// CCNSArray.h// CCFC//// Created by xichen on 11-12-17.// Copyright 2011年 ccteam. All rights reserved.//#import <Foundation/Foundation.h>@interface NSArray(cc)// 判断一个对象指针(不是对象的值)是否在数组中存在- (BOOL)isPointerExistsInArray:(id)element;// print the retainCount of each element- (void)printRetainCou 阅读全文
posted @ 2012-01-01 11:39 cc_team 阅读(142) 评论(0) 推荐(0)
摘要://// CCMemory.m// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import "CCMemory.h"@implementation CCMemory// get the info of memory+ (BOOL)getMemoryInfo:(vm_statistics_data_t *)vmStats{ mach_msg_type_number_t infoCount = HOST_VM_INFO_COUNT; ... 阅读全文
posted @ 2012-01-01 11:37 cc_team 阅读(197) 评论(0) 推荐(0)
摘要://// CCMemory.h// CCFC//// Created by xichen on 11-12-23.// Copyright 2011 ccteam. All rights reserved.//#import <Foundation/Foundation.h>#import <mach/mach.h>@interface CCMemory : NSObject {}// get the info of memory+ (BOOL)getMemoryInfo:(vm_statistics_data_t *)vmStats;@end可能有更新: google 阅读全文
posted @ 2012-01-01 11:35 cc_team 阅读(166) 评论(0) 推荐(0)
摘要://// CCMapAnnotation.m// CCFC//// Created by xichen on 11-12-30.// Copyright 2011 ccteam. All rights reserved.//#import "CCMapAnnotation.h"#import "CCCommon.h"@implementation CCMapAnnotation@synthesize title = _title;@synthesize subtitle = _subtitle;@synthesize coordinate = _cord 阅读全文
posted @ 2012-01-01 11:33 cc_team 阅读(413) 评论(2) 推荐(1)