Transparency is evil, on iOS devices even more so than on heavier machines. I therefore figured to use view removeFromSuperView first, if not applicable view.hidden=YES and as a last resort view.alpha=0. But I actually don’t know what’s going on behind the scenes. Is there a difference, especially between the latter two?
I have a UIView animateWithDuration:animations:completion: scenario, where if you put hidden=YES in the completion block, it will hide without letting the animation block finish. Therefore I have to resort to alpha=0.
What are the penalties of the one over the other?
Cheers, EP.
I am not sure that a view with alpha 0.0 is still drawn. Check the documentation library:
I also have found this answer here http://www.iphonedevsdk.com/forum/iphone-sdk-development/65525-whats-difference-between-alpha-0-hidden-yes.html
That says: