I have been looking around for an answer and kind of a "best practise" for these cases as they must happen often for any developer trying to deal with UI and obviously UIKit.
I have read through this thread and numerous other websites without finding a good answer
What I am asking is what the differences in performance are when choosing to hide a view without the necessity to animate them (I am aware of the differences in regards to the visual effect of both properties when they change)
From a pragmatical standpoint I feel that it would be smarter to just set the hidden property and not care about alpha as long as you do not want to animate anything at all. On the other hand, if there is absolutely no difference in performance, why add the property to the UIView class?
In some comments and questions people were saying that the hidden
property is true when the alpha
value was 0.0f
but after some debugging I found out that this is actually not the case, they seem to be completely separate and not connected in any logical way
EDIT
I do want to emphasise that I understand that the difference in performance won't be much, but I still would like to know it and it is the question that is asked. It is not about the usage. This has been taken care of on numerous pages and as well on stackoverflow.