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?

Bhavin Ramani
  • 3,221
  • 5
  • 30
  • 41
zorro2b
  • 2,227
  • 4
  • 28
  • 45
  • Try using systemLayoutSizeFitting on table header view and set the same height to table header view frame size. – Arjuna Nov 23 '16 at 09:29
  • You should set the fixed height to the textField if is textField border style is UITextBorderStyleNone. – Bharat Modi Nov 23 '16 at 09:33

0 Answers0