iOS fade-in and fade-out Animation

Today just a small code snippet to create a nice fade-in-fade-out (or call it pulsating) effect on a given UIImage . To accomplish this within a UIView  you have to do only a few steps:

  • Create a UIImageView  containing your image.
  • Create the animation with its properties.
  • Set the animation for the specific layer containing your image.

In words of code you will have to do something like the following:

Leave a Reply

Your email address will not be published. Required fields are marked *