0
내가 통해 자동 UIImageViews를 만들 용 루프 :자동 생성 된 UIImageViews는 어떻게 변경합니까?
가for (int i=0; i<anzahlzeilen; i++) {
Anfanggrau = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Grauer-Balken.png"]];
Anfanggrau.frame = CGRectMake(0, [heightofrow intValue]*i,[breitescroller2 intValue],[heightofrow intValue]);
[Inhalt1 addSubview:Anfanggrau];
[Anfanggrau release];
};
이제 이벤트 후에 "breitescroller2"변경 제가있는 UIImageView의 모든 폭을 변경해야한다. 이 코드를 두 번 호출하면 이전 메모리에 남아서 메모리 문제가 발생합니다. 누구에게 아이디어가 있습니까? removeFromSuperview
에 태그를 지정하고 이전 태그를 삭제할 수 있습니까?
대단히 감사합니다!
완벽! 대단히 감사합니다! 그것은 위대한 작품! – Jonathan