jordangrogan
jordangrogan

Reputation: 251

UITableView Header Size

I stopped development of my app for a couple months, and now I'm coming back to it. For the life of me, I can't remember how I got the UITableView Header to be larger: enter image description here

I'm trying to get it to go back to a normal table view (not such a huge header). I checked through my code, and there's no mention of "header" anywhere. Am I missing something in the Storyboard inspector? Is there a way to reset the attributes? Thanks!

Upvotes: 1

Views: 183

Answers (2)

thatzprem
thatzprem

Reputation: 4767

It hope it should work by just setting the frame property of the UITableView header.

CGRect newFrame = myHeaderView.frame;
newFrame.size.height = newFrame.size.height + 100;
myHeaderView.frame = newFrame;

self.tableView.tableHeaderView = myHeaderView;

Upvotes: 0

Matt Tang
Matt Tang

Reputation: 1297

Select your table view in your storyboard or nib file. In the Utilities side bar, go to the size tab (selected in the screenshot) and check the Section Height options.

Does that help?

enter image description here

Upvotes: 1

Related Questions