1. 安全释放对象 #ifndef _RELEASE( x ) #define _RELEASE( x ) if( nil != (x)){ [(x) release] ; (x) = nil ; } #endif