I have two views, a designated superview and a subview. The subview has an alpha value of 0 and has only been initialized and not been added to any superview. After the configuration of my subview I declare a UIView animation block. With this, I change the alpha of the subview to 1.0 within less than a second.
Right after I declare the animation I add the subview to my superview X.
Is it possible that the animation won't happen – and if so, why?
[UIView animateWithDuration:0.3 animations:^(void) {
[aSubview setAlpha:1.0];
}];
[aSuperview addSubview:aSubview];