iphone - Manually fade in a newly added subview? -


Adding to the stack when I want to fade

[self .view AddSubview: someSecondaryViewController.view]

How can I revise this call so that the footage is fade in (and outside)?

Set alpha before animating, then alphamphize one.

  [fadingView setAlpha: 0.0]; [View Container Add-SView: FZV]; [UIView startup permissions: zero reference: zero]; [Floodview set alpha: 1.0]; [UIView commitAnimations];  

Before deleting the view, just animate the alpha back to zero.

BTW, the visual hierarchy is more than a stack tree.

Edit:

If there is no other cleaning after the animation has ended, then use it:

  [UIView setAnimationDelegate: fadingView]; [UIView Set AnimationDesource Editor: @selector (removeFromSuperview)];  

If you are already setting up a didStopSelector, then retrieve RemoteSuperview call.


Comments