私はいくつかのよく知られていないObjective-cメモリ管理コードを実行しました。Objective-cオブジェクト解放パターン
// no property declared for myMemberVariable in interface
id oldID = myMemberVariable;
myMemberVariable = [MyMemberVariable alloc] init];
[oldID release];
と::
// (nonatomic, retain) property is declared for myMemberVariable in interface
self.myMemberVariable = [[MyMemberVariable alloc] init];
感謝の違いは何です!