我在学习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 –