Animieren UIImageView frame by frame

Ich habe eine Idee, wie fügen Sie animierte UIImageView mit frame-by-frame-Methode, ABER meine Frage ist über, Wie zu animieren UIImageView BEREITS Hinzugefügt am view-controller storyboard als IBOutlet UIImageView .

was verändert wird an diesem Stückchen code ?!

NSArray *myImages = [NSArray arrayWithObjects:
                         [UIImage imageNamed:@"bookmark1.png"],
                         [UIImage imageNamed:@"bookmark2.png"],
                         [UIImage imageNamed:@"bookmark3.png"],
                         [UIImage imageNamed:@"bookmark4.png"],
                         [UIImage imageNamed:@"bookmark5.png"],nil];

    myAnimatedView = [UIImageView alloc];

   [myAnimatedView initWithFrame:CGRectMake(0, 0, 131, 125)];

    myAnimatedView.animationImages = myImages;

    myAnimatedView.animationDuration = 0.25;

    myAnimatedView.animationRepeatCount = 1;

    [myAnimatedView startAnimating];

    [self.navigationController.view addSubview:myAnimatedView];

Möchte ich animieren, dieses Bild wie über meine viewController

http://imageshack.us/a/img717/3051/bookmarkl.gif

Schreibe einen Kommentar