我有财产:
@property NSMutableArray *fieldsArray;
@synthesize fieldsArray;
在方法中,我尝试从这个数组中获取一些东西:
- (void)animationDidStop:(CAAnimation *)theAnimation finished:(BOOL)flag{
NSInteger firstBallIndex = [self.fieldsArray indexOfObject:self.firstBall];
}
但后来我得到错误:
NSRangeException',原因:' * -[__NSArrayM objectAtIndex:]:索引 2147483647 超出范围 [0 .. 35]'
所以数组是不可访问的。
怎么做才看得见?