摘要: @interface TaskCmdCtrler : NSObject+(TaskCmdCtrler*) shareInstance;@implementation TaskCmdCtrler+(TaskCmdCtrler*) shareInstance{ if (s_instance) return s_instance; @synchronized(self) { if (nil==s_instance) { s_instance = [[super allocWithZone:nil] init]; } } returns_instance... 阅读全文
posted @ 2013-07-29 10:39 童话DY 阅读(604) 评论(0) 推荐(0) 编辑
摘要: 在ARC工程中,_netWorkAlertView = [[UIAlertViewalloc] initWithTitle:nilmessage:@"正在使用3G网络,可能产生较大流量" delegate:selfcancelButtonTitle:@"取消"otherButtonTitles:@"继续", nil]; [_netWorkAlertView show];#pragma mark UI Alert View Delegate Methods- (void)alertView:(UIAlertView *)alertVie 阅读全文
posted @ 2013-07-29 10:32 童话DY 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 在Block内,会将要操作的对象的retain count 加 1,所以注意对象的释放问题。 阅读全文
posted @ 2013-07-29 10:21 童话DY 阅读(167) 评论(0) 推荐(0) 编辑
摘要: IOS的静态链接库 .a文件;静态链接库可以包含其他的动态或者静态链接库;动态链接库 .dylib文件;动态链接库不允许再包含其他的动态或者静态链接库;在IOS中,上架的应用不允许使用第三方的动态链接库,否则审核的时候会被拒掉;动态链接库可以在运行的时候根据需要动态调用;而静态链接库,在编译的时候就已经全都编译进去了; 阅读全文
posted @ 2013-07-29 09:00 童话DY 阅读(628) 评论(0) 推荐(0) 编辑