xcode – iOS – objective-c


How to make fade in or fade out animation for “or on” UIImageView object in Objective-c ” iOS”

you want to use UIVew class and UIImageView object “myImage”

1-    UIView : beginAnimations : context // to tell that the animation options will start !!

2- UIView setAnimationCurve // to set animation curve “fast then slow then fast etc..”

3- UIView setAnimationDuration // to set the time that the full animation will take ” from start to end”

4- UIView commitAnimations // start animating :)