2014年8月14日
摘要: 介绍:ZBarSDK是一个开源的SDK,可从这里下载到源码,该SDK实现了识别和读取各种条形码,包括EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 和 QR Code。帮助文档:http://zbar.sourcef... 阅读全文
posted @ 2014-08-14 12:16 囧小斐 阅读(267) 评论(0) 推荐(0)
摘要: 阅读别人代码的时候,经常会在delloc方法中,看到有的人释放对象使用self.xxx=nil,有些人使用[xxx release];就忍不住想查看一下这两者的区别;搜索资料之后,看到网上找到如下说法:self.xxx = nil;等价于[xxx release]; xxx = [nil retai... 阅读全文
posted @ 2014-08-14 12:12 囧小斐 阅读(198) 评论(0) 推荐(0)
摘要: The difference is that an object will be deallocated as soon as there are nostrongpointers to it. Even if weak pointers point to it, once the last str... 阅读全文
posted @ 2014-08-14 12:09 囧小斐 阅读(187) 评论(0) 推荐(0)
摘要: iOS 5 中对属性的设置新增了strong 和weak关键字来修饰属性strong 用来修饰强引用的属性;@property (strong) SomeClass * aObject;对应原来的@property (retain) SomeClass * aObject; 和 @property ... 阅读全文
posted @ 2014-08-14 12:06 囧小斐 阅读(101) 评论(0) 推荐(0)