我在學習Objective C。我被給了一個代碼來解決我已經修復但不完全確定發生了什麼。有些人可以解釋下面的代碼在做什麼。這是什麼目標C代碼在做什麼?
//in header file there is this line
@property (retain) NSMutableArray *anArray;
// In implementation file in a method
self.anArray = [NSMutableArray array];
//This assigns a large value to index . What is this value. Does NSIteger needs initialization I think default is 0
NSInteger _nextIndex = (NSInteger)[self.anArray];
謝謝好解釋投票up –