Just fade and fade

I have one view controller with built-in UIscrollview. There are 42+ images in total, and I'm trying to squeeze out each image in the following

I know that I need to use something called "start the animation and complete the animation."

I tried tirelessly to get this to work. Can someone post the code for me here and ask for it again? I’m even ready to pay someone for a telephone consultation, as it is so disappointing. If someone can help me, it will be awesome.

Also, do I need to add something to my delegate files to make this work? I think these are a few lines of code, and am I right to go right?

thanks

+4
source share
1 answer

The following code assumes that you have two UIImageView located in the same place, but with one alpha value equal to 0 (hidden) and the other 1 (visible).

 [UIView beginAnimations:@"fade in a new image from another" context:nil]; [UIView setAnimationDuration:0.5]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; oldImageView.alpha = 0.0; newImageView.alpha = 1.0; [UIView commitAnimations]; 
+12
source

All Articles