I got a banner UIView
which I want to remove if the user has NoAds Feature.
Problem is after I remove the banner UIView
, I cant' find a way to set the constraints of the top view to wrap the rest of ViewController
.
Here are some images for you to better understand.
I remove the banner UIView
with removeFromSuperview()
method.
On the storyboard, my bottom constraint is set to 0 towards the nearest neighbour which is the UIView
banner at the time. Problem is, after I remove the Banner UIView
, I want to set the bottom constraint of the above UIView to 0 towards the SuperView.
Thanks in advance.