Answer the question
In order to leave comments, you need to log in
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
You should read a book, my friend :)
www.youtube.com/watch?v=fXJ0Dn5cOgI&feature=youtube_gdata
Which mistakes? What classes?
Try in -viewDidAppear: send -startAnmating.
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question