摘要: 1. xcode 4.3.3以后 NSAutoreleasePool 的用法发生改变,由 NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; …. [pool drain];变为: @autoreleasepool { …. }2. 在objc中也存在static 关键字,作用与Java中的static 相同即, 内存中只有一份。For example: 类Maths_, 其中有一个属性是 static int number(初始化为 0 ), 类方法使number++,然后new了10个Maths_类, 每个类都调用类方法. 阅读全文
posted @ 2012-08-12 17:42 Green.Face. 阅读(3306) 评论(0) 推荐(0) 编辑