私のアプリが起動すると、UIImageView で同時に60枚の画像が読み込まれ、バックグラウンドミュージックも読み込まれます。それがうまく動作しますが、IPADで、それがクラッシュしたシミュレータでローカルで60枚の画像を読み込むことは可能ですか?
..
-(void)viewDidLoad
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
//img.animationImages = [[NSArray arrayWithObjects:
MyImages = [NSArray arrayWithObjects:
//[UIImage imageNamed: @"BookOpeningB001.jpg"],...... B099,nil];
//[NSTimer scheduledTimerWithTimeInterval: 8.0 target:self selector:@selector(onTimer) userInfo:nil repeats:NO];
img.animationImages = MyImages;
img.animationDuration = 8.0; // seconds
img.animationRepeatCount = 1; // 0 = loops forever
[img startAnimating];
[self.view addSubview:img];
[img release];
[pool release];
//[img performSelector:@selector(displayImage:) ];
//[self performSelector:@selector(displayImage:) withObject:nil afterDelay:10.0];
[self performSelector: @selector(displayImage) withObject: nil afterDelay: 8.0];
}
-(void)displayImage {
SelectOption *NextView = [[SelectOption alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:NextView animated:NO];
[NextView release];
}
は私が間違って何をやっていますか? UIImageViewでローカルイメージをより高速に読み込むための他の方法はありませんか? !
これは誤った重複、またはバグのようです:ChrisFは、以下に参照される元の質問を移行しました。 –
60匹のホットドッグを食べたい。彼らが一杯のカクテルフランクを飲むなら、それは可能かもしれません。フットロング、まさか。画像の詳細を教えてください。 –