Reputation: 11257
I have a tableview that has it's bottom constrain set to the top of a toolbar, however, I sometimes hide this toolbar when the buttons are unnecessary.
How do I set up my tableview's bottom constraint to now be the bottom of the screen sans toolbar?
Do I set 2 bottom constraints in storyboard? Do I swap these out programmatically?
Upvotes: 1
Views: 271
Reputation: 17860
Hiding view does't remove it from the layout calculations. You must do one of the following:
or
Upvotes: 2