This question is really basic. What is the performance difference between removing a
If you need to alternate between showing and hiding the subview, the best approach is definitely hiding it. For a
UIButton the memory implications are not that great anyway. And the code is certainly simpler if you just switch the
Also, you get the additional advantage that the
hidden property is animatable!