385 개의 png 이미지로 애니메이션을 만들고 싶습니다. 일부 코드를 작성 했으므로 아래에서 볼 수 있습니다. 오류 ... PNG 이미지 시퀀스 애니메이션 오류
내가 "picollage 01"부터 카운트되는 PNG 이미지 (프레임)을 "picollage 385" 큰 목록을 가지고 : 엑스 코드는 "신호 SIGABRT 스레드 1"을주는 시간이 전체 인내 코드 : [? 왜 새 계정을 만들 않았다]
#define IMAGE_COUNT 385
NSMutableArray *imageArray = [[NSMutableArray alloc] initWithCapacity:0];
for (int i = 1; i <= IMAGE_COUNT; i++)
if (i < 100) {
[imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"picollage 0%d.png", i]]]; }
else {
[imageArray addObject:[UIImage imageNamed:[NSString stringWithFormat:@"picollage %d.png", i]]];}
animatview.animationImages = [imageArray copy];
animatview.animationRepeatCount = 1000;
[animatview startAnimating];
[[NSMutableArray alloc] initWithCapacity:IMAGE_COUNT]
이 있어야 할 문제[[NSMutableArray alloc] initWithCapacity:0]
의 원인이다 (http://stackoverflow.com/questions/ 16633862/gif-animation-from-383-gifs/16634080 # 16634080) – HAS'[imageArray addObject : [UIImage imageNamed : [[NSString stringWithFormat : @ "picollage 0 % d.png", i] stringByStandardizingPath]]]'? – HAS
http://stackoverflow.com/questions/16676947/png-image-sequence-error ... 정확한 복제물 ... 왜 그렇게합니까? – HAS