代码中不能使用retain, release, retain, autorelease
不重载dealloc(若是是释放对象内存之外的处理,是能够重载该函数的,可是不能调用[super dealloc])
不能使用NSAllocateObject, NSDeallocateObject
不能在C结构体中使用对象指针
id与void *间的若是cast时须要用特定的方法(__bridge关键字)
不能使用NSAutoReleasePool、而须要@autoreleasepool块
不能使用“new”开始的属性名称 (若是使用会有下面的编译错误”Property’s synthesized getter follows Cocoa naming convention for returning ‘owned’ objects”)