0
제가자동
I는 (반복 사용)을 자동 6 UIView의 객체를 생성하는 함수를 작성한 가변 배열 UIView의 객체를 생성, 삽입 및 그것을 실행할 때 I는 NSMutableArray의 각 객체를 삽입 한 다음 시도하지만 그것은 (버그에 대한 언급없이) 경고와 함께 멈 춥니 다.
내 논리적 인 단계에서 어떤 내용을 준수하지 않는지 알지 못합니다.
여기 내 코드입니다.
-(void)initierScrollView
{
int i;
for (i=0; i<6; i++) {
UIImage *image = [UIImage imageNamed:@"back.png"];
UIImageView *bouton = [[UIImageView alloc] initWithImage:image];
[bouton setTag:i];
classementBoutons = [[NSMutableArray alloc] initWithCapacity:40];
[bouton setFrame:CGRectMake(10+62*i,10,62,55)];
[classementBoutons insertObject:bouton atIndex:i];
bouton.userInteractionEnabled = YES;
UIPanGestureRecognizer *recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePanGesture:)];
recognizer.delegate = self;
[bouton addGestureRecognizer:recognizer];
// NSLog(@"%@", classementBoutons.description);
[self addSubview:bouton];
}
}
는 답변
빅터
정확한 오류는 무엇입니까? – fzwo
주요 기능으로 돌아가 SIGABRT 수신 신호 –