I'm trying to rearrange the content of my UIView based on a user event (rotation), and I've found that I would like to combine a translation animation, and the fading out and fading in of various controls.
Since this seems to depend on the "options" of the animate functions, I assumed that I need to launch two animations concurrently with different options, as follows. The "Layout_Set" function assigns new "frames" to all of my controls, which works fine. The "setHidden" in the block of the other animation is intended to fade out a single control on rotation.
However... doesn't work. Is this the right way to (a) launch concurrent animations and (b) to fade out a control?
Thanks very much for any help.
[UIView animateWithDuration:duration
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn +
UIViewAnimationOptionCurveEaseOut + UIViewAnimationOptionBeginFromCurrentState
animations:^{
[self Layout_Set];
}
completion:^(BOOL finished){}];
[UIView animateWithDuration:duration
delay: 0.0
options: UIViewAnimationOptionCurveEaseIn +
UIViewAnimationOptionCurveEaseOut + UIViewAnimationOptionBeginFromCurrentState
animations:^{
[self.UIImageQRCameraLogo setHidden:true];
}
completion:^(BOOL finished){}];