0
UIImageView *campFireView=[[UIImageView alloc] initWithFrame:CGRectMake(0,0,320,480)];
//UIImageView *campFireView =[[UIImageView alloc] initWithFrame:campFireView];
// load all the frames of our animation
campFireView.animationImages = [NSArray arrayWithObject:[UIImage imageNamed:@"Img_0.jpg"],
nil];
// all frames will execute in 1.75 seconds
campFireView.animationDuration = 1.75;
// repeat the annimation forever
campFireView.animationRepeatCount = 1000.0;
// start animating
[campFireView startAnimating];
// add the animation view to the main window
[self.view addSubview:campFireView];
[campFireView release];
das Problem, ein Bild nennen sind hier i nur ein Bild setzen will, so kann ich arraywithobject verwendet habe, aber wenn ich diesen Code ausführen wird es mir eine Fehlermeldung zu geben, dass auch viele Parameter für arrayWithObject. Was ist problem.Kann mir helfen, dieses Problem zu lösenwie in zwischen für einen bestimmten Zeitraum in Objective-C