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.
question from:
https://stackoverflow.com/questions/5146947/what-is-the-impact-of-view-alpha-0-vs-view-hidden-yes 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…