1

I am loading a UITableView header from a xib. The header is displayed, however it is being stretched rather than being displayed as compact as possible.

Below is a screenshot from the view debugger: View debugger

As you can see, the text field with "Bob's Pizza" has been stretched quite tall.

How can I get the view to layout to its minimum height?

2
  • Try using systemLayoutSizeFitting on table header view and set the same height to table header view frame size. Commented Nov 23, 2016 at 9:29
  • You should set the fixed height to the textField if is textField border style is UITextBorderStyleNone. Commented Nov 23, 2016 at 9:33

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.