user3282227
user3282227

Reputation: 149

Xcode 10.0. how to increase sub view size inside a UIview

I have my storyboard/layout like this. inside a UIView I have a subview and a tableview. how do I increase the size of top subview in storyboard. I change the size of CheckoutNTotal but it doesn't reflect at runtime. please see attached image.enter image description here

Upvotes: 0

Views: 60

Answers (2)

Toseef Khilji
Toseef Khilji

Reputation: 17409

There is constraint warning, fix it.

If your view has fixed height set Height Constraint.

enter image description here

Upvotes: 0

Smartcat
Smartcat

Reputation: 2882

Fix the constraint warning. See the dotted yellow line? That means that's the size of the view that the constraint is expecting it to be. So since you want the view bigger, you need to tell the constraint(s) to expect it bigger. If you tap the warning in the left pane (above what you have shown here), you can fix the warning by telling InterfaceBuilder to automatically change the constraint(s) to match the new size of the view.

Upvotes: 2

Related Questions