09 2012 档案

摘要:iPhone开发之深入浅出 (1) — ARC是什么博主:易飞扬原文链接:http://www.yifeiyang.net/development-of-the-iphone-simply-1/iPhone开发之深入浅出 (2) — ARC之@property使用博主:易飞扬原文链接:http://www.yifeiyang.net/development-of-the-iphone-simply-2/iPhone开发之深入浅出 (3) — ARC之前世今生博主:易飞扬原文链接:http://www.yifeiyang.net/development-of-the-iphone-simply- 阅读全文
posted @ 2012-09-28 16:25 hellocby 阅读(369) 评论(0) 推荐(0)
摘要:xcode 4.2非常可恶,原来的代码里有调用performselector:withObject:的地方无一例外获得一个警告:Semantic IssuePerformSelector may cause a leak because its selector is unknownwarning倒是不影响程序运行,但是这人要是有点代码小洁癖的话,那日子就没法过了,这warning怎么看都碍眼。所以必须得想办法把它弄没了:#pragma clang diagnostic push#pragma clang diagnostic ignored "-Warc-performSelect 阅读全文
posted @ 2012-09-28 11:40 hellocby 阅读(252) 评论(0) 推荐(0)
摘要:http://raptureinvenice.com/arc-support-without-branches/ 阅读全文
posted @ 2012-09-28 11:38 hellocby 阅读(129) 评论(0) 推荐(0)
摘要:去这里http://developer.apple.com/iphone/library/samplecode/Reachability/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007324-Intro-DontLinkElementID_2下载Reachability.m和Reachability.h,然后添加到你的项目里面,在需要测试网络连接class里面写这样的一个方法- (BOOL)testConnection {BOOL result = YES;Reachability *reach=[Reachability shared 阅读全文
posted @ 2012-09-19 17:34 hellocby 阅读(1179) 评论(0) 推荐(0)
摘要:1.导入MessageUI.framework框架2.在需要应用的控制器头文件:#import <MessageUI/MessageUI.h>,并加入委托:<MFMailComposeViewControllerDelegate>3.实现方法:-(void)displayComposerSheet{ MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@ 阅读全文
posted @ 2012-09-19 14:49 hellocby 阅读(4477) 评论(0) 推荐(0)
摘要:-(void)leftClick{[UIViewbeginAnimations:nilcontext:nil];//displaymode,slowatbeginningandend[UIViewsetAnimationCurve:UIViewAnimationCurveEaseInOut];//动画时间[UIViewsetAnimationDuration:1.0f];//使用当前正在运行的状态开始下一段动画[UIViewsetAnimationBeginsFromCurrentState:YES];//给视图添加过渡效果[UIViewsetAnimationTransition:UIVie 阅读全文
posted @ 2012-09-17 16:36 hellocby 阅读(296) 评论(0) 推荐(0)
摘要:nil: Anullpointer to an Objective-C object.
( #definenil((id)0) )
Nil: Anullpointer to an Objective-C class.
NULL: Anullpointer to anything else. ( #defineNULL((void *)0) )
NSNull: A class defines a singleton object used to representnullvalues in collection objects (which don't allownilvalues).
 阅读全文
posted @ 2012-09-16 21:26 hellocby 阅读(409) 评论(0) 推荐(1)