i like to start this animation when tilting. it doesn't, so i suppose some essential code is missing. please help:
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration {
flap.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed: @"ronnie1.png"],
[UIImage imageNamed: @"ronnie2.png"],
[UIImage imageNamed: @"ronnie3.png"],
[UIImage imageNamed: @"ronnie4.png"],
[UIImage imageNamed: @"ronnie5.png"],
[UIImage imageNamed: @"ronnie6.png"],
[UIImage imageNamed: @"ronnie7.png"],
[UIImage imageNamed: @"ronnie8.png"],
[UIImage imageNamed: @"ronnie9.png"],
[UIImage imageNamed: @"ronnie10.png"],nil];
[flap setAnimationRepeatCount:1];
flap.animationDuration = 2;
[flap startAnimating];
}