Reputation: 137
I need to make an image that does a pulsating effect (fading in and out). I have another way to accomplish this with NSArray of images, but if there is an easier way that someone can point to me I will appreciate it. I do not want to make too many images.
Upvotes: 1
Views: 189
Reputation: 5290
There is no pulse animation. What you want to do is:
[UIView animateWithDuration:0.3
animation:^{
// Fade In
}
completion:^(BOOL finished) {
[UIView animateWithDuration:0.3
animation:^{
// Fade Out
}
}];
Repeat as necessary.
Upvotes: 1