data = [[NSMutableArray arrayWithCapacity:numISF]init];
count = 0;
while (count <= numISF)
{
[data addObject:[[rouge_col_data alloc]init]];
count++;
}
I의 while 루프 단계별 데이터 어레이 내의 각 객체- NSMutableArray의 에러하면
루즈 COL 데이터의 구현은 다음과 같다 "범위 밖"이다 ..
@implementation rouge_col_data
@synthesize pos;
@synthesize state;
-(id) init {
self = [super init];
return self;
}
@end
대부분의 자습서 이러한 종류의 배열에있는 객체에 대해서만 NSString을 사용할 수 있습니다.
고마워요 알렉스 E
EDIT
data = [[[NSMutableArray alloc] initWithCapacity:numISF]retain];
//data = [[NSMutableArray arrayWithCapacity:numISF] retain];
count = 0;
while (count < numISF)
{
[data addObject:[[[rouge_col_data alloc]init]autorelease]];
count++;
}
여전히 같은 오류는 "데이터 = '전환하더라도.
이 문제를 해결하는 더 좋은 방법이 있습니까? – DevEarley