IOS 對deallloc 的兩種處理方法

對於dealloc函數有兩種作法,函數 一個是直接將實例變量release掉:指針 -(void)dealloc調試 {對象   [subject release];內存 [super dealloc];變量 }object 另外一種是將變量relsease 掉再將它指向nil;方法 -(void)deallocdi {消息 [subject release]   subject=nil; [su
相關文章
相關標籤/搜索