我正在通过Chung找到"Pro.Conject-C Design Patterns for iOS"
_sharedSinglton = [[super allocWithZone: NULL] init];
我也查看了Apple的NSCopying文档,但无法真正了解ZONE的真正含义.
NSZone现在已经过时了,但是在NEXTSTEP时代,NSZone试图将"malloc区域"的概念引入Cocoa.以下是一些描述它启用时如何工作的文档:http://www.cocoadev.com/index.pl?NSZone
| 归档时间: |
|
| 查看次数: |
840 次 |
| 最近记录: |