I have a program that when a button is pressed, a view appears superimposed on the main one. I would like the view below to darken slightly (fadeout) so that the view that appears superimposed more contrast. I can not do it well because the code I have obscures both views.
[UIView animateWithDuration: 2.0
delay: 0.5
options: UIViewAnimationOptionCurveEaseOut
animations: ^{
self.view.alpha = 0.5;
}
completion: ^(BOOL finished) {
}];