views:

61

answers:

0

It's possible to set an animation with multiple view? usually i set up an animation with a code like this:

NSArray * imageArray  = [[NSArray alloc] initWithObjects:

    [UIImage imageNamed:@"1.png"],
    [UIImage imageNamed:@"2.png"],
    [UIImage imageNamed:@"3.png"],
    [UIImage imageNamed:@"4.png"],
    [UIImage imageNamed:@"5.png"],
    [UIImage imageNamed:@"6.png"],
    [UIImage imageNamed:@"7.png"],
    [UIImage imageNamed:@"8.png"],
    [UIImage imageNamed:@"9.png"],
    [UIImage imageNamed:@"10.png"],
    [UIImage imageNamed:@"11.png"],
    [UIImage imageNamed:@"12.png"],
    nil];

UIImageView * ryuJump = [[UIImageView alloc] initWithFrame:
    CGRectMake(0, 0, 320, 480)];

ryuJump.animationImages = imageArray;

ryuJump.animationDuration = 1.1;

ryuJump.contentMode = UIViewContentModeBottomLeft;

[self.view addSubview:ryuJump];

[ryuJump startAnimating];

But it's possible to set up the animation not with image but with View?

Thanks