I have been trying to build an entry effect for a logo to come from the top of the screen to the bottom and remain there when a new view loads in my application. I have seen all of the tutorials that use NSTimer to bounce an image but once my logo hits the bottom it needs to exit. I’m going to read up on animation block codes to see if my solution resides there.
Apologies I’m a new be and am very grateful for the assistance.
Set logo frame to top and then:
logoToMoveis your logo, give it an outlet and hook it in xib.So you will set the initial frame and in the animation – the final frame. The animation will do the rest of the job.
Change
UIViewAnimationCurveLinearto a desired one if you don’t like that. Also the duration to speed up or slow down the movement.