Created by Jamz Tang at 1 September 2011

Adding fadeout effect to any -[UIViews removeFromSuperview]

Typically you like to do something like below when you wanted to remove a view from its parent view.

[myView removeFromSuperview];

Sometimes it's not that please for a user to see an UI component disappearing suddenly. You'd then consider adding some transition effects, and here's a little code snippet in the UIView+JTRemoveAnimated category for how you can get a fade out effect on view removal.

So from now on, you just needed to do this to fade out any UIViews

[myView removeFromSuperviewAnimated]


Clone this repository:
git clone git:// UIView+JTRemoveAnimated

| More...

If you think this is useful, share this article with your friends :)

blog comments powered by Disqus