1
You can use transitionWithView:
let toImage = UIImage(named:"myname.png")
UIView.transitionWithView(self.imageView,
duration:5,
options: UIViewAnimationOptions.TransitionCrossDissolve,
animations: { self.imageView.image = toImage },
completion: nil)
Example: https://github.com/zazk/Simple-SlideShow-Swift
You can also use these options: http://mathewsanders.com/animations-in-swift-part-two
Very interesting, thanks for the tip, but is there any way I could keep it going? As a slide even, I enter the app and the home screen appears the slide interleaving between the 3 images.
– CristianCotrena
@Cristiancotrena I only updated the answer
– Juan de Dios
I wanted to do it exactly the way you did, but with images from the Internet. I take an image, stored in an Uiimage, when I try to place the Uiimage in the Animate (where it is informing the images), error.
– CristianCotrena
I might be doing it wrong too, but if you mail me, I can show you how I tried to do it
– CristianCotrena
Hello friend, I managed to do the way I wanted. But I have a doubt, when I want to go to another Viewcontroller how do I stop the animation?
– CristianCotrena