I was wondering if a view created with IB which can disappear from the main view (translation to the +2000 to x with an animation for exemple) take more memory if it is added always on the subviews of if I have to removeFromSuperview it each time it disappear from the view and addSubview when I want make appear it.
Regards,
KL94
Not sure but I wouldn’t count on it. To hide the view, set the
.hidden = YESproperty. That would be your best bet to lower memory consumption while keeping the view in the view hierarchy.