L
L
lubimow2013-09-21 23:17:45
iOS
lubimow, 2013-09-21 23:17:45

Animation in xCode 5 - not working?

I found a tutorial on how to make an animation. You need exactly the same as in the code below and at the link
www.geekylemon.com/WEBPROTECT-xcodetutorialautoanim.htm
But the problem is that xCode 5 - gives errors - says that there are no such classes, etc.
Tell me what to do?
I rummaged through everything, I can’t find a decent code how to make an animation
ViewController.h
interface ViewController : UIViewController {
IBOutlet UIImageView *animation;
}
end
ViewController.m
@implementation ViewController
-(void)viewDidLoad {
animation.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"ball1.gif"],
[UIImage imageNamed:@"ball2.gif"],
[UIImage imageNamed:@"ball3.gif"],
[UIImage imageNamed:@"ball4.gif"],
[UIImage imageNamed:@"ball5.gif"],
[UIImage imageNamed:@"ball6.gif"],
[UIImage imageNamed:@"ball7.gif"],
[UIImage imageNamed:@"ball8.gif"],
[UIImage imageNamed:@"ball9.gif"],nil];
[animation setAnimationRepeatCount:0];
animation.animationDuration = 1;
[animation startAnimating];
}
end

Answer the question

In order to leave comments, you need to log in

6 answer(s)
G
gooddy, 2013-09-22
@lubimow

You should read a book, my friend :)
www.youtube.com/watch?v=fXJ0Dn5cOgI&feature=youtube_gdata

L
lubimow, 2013-09-23
@lubimow

Super!
Everything worked))

E
Egor Merkushev, 2013-09-22
@egormerkushev

Which mistakes? What classes?
Try in -viewDidAppear: send -startAnmating.

L
lubimow, 2013-09-22
@lubimow

Now that I have registered it all - again, nothing now swears. But when I create an Image View - in Outlets I don't have an animation fad - as shown in their video
www.youtube.com/watch?v=5AbdZ-8JBZQ#t=414

L
lubimow, 2013-09-22
@lubimow

Here I took another version of the animation
www.youtube.com/watch?v=yy_k9kfgiOc
I did everything exactly as in the video - and as a result it produces
Thread 1: signal SIGABRT
I re-read each letter - zero.

L
lubimow, 2013-09-23
@lubimow

Yes, but I undertook to make a simple application. And almost finished. And then the animation came to my mind) So I'm sitting here worried))
Thank you))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question