Try using
myButton.alpha = 0.0;
[myView addSubview:myButton]
before calling the animation.
[UIView animateWithDuration:3.0
delay:0.0
options: UIViewAnimationCurveEaseInOut
animations:^{myButton.alpha = 1.0;}
completion:nil];
If you shade it and add it for viewing, then the fading in the part will not be within sight (it will be behind the scenes). So first add it to zero alpha, and then put it out.
source
share