Uneven section header size in static UITableView

RobertJoseph

I've created a simple static UITableView which is embedded in a UINavigationController. I don't understand why the height of the first section header is greater than that of the height of the section header after the first section. I want the height of the section headers to be the same.

Note: I'd like to do everything in the Storyboard if possible.

UITableView

Gismay

I don't think you can do this just in Storyboard. The only way I have been able to get things looking the way I want is to implement something like;

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
{

if (section==0)
{
    return 25;
}
else
if (section==1)
{
    return 35;
} // etc etc

And then, in Storyboard, adjust the Table View Size, Section Height values.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

UITableView Section Header not showing

From Dev

How to pad a UITableView section header?

From Dev

UITableView section header inset missing

From Dev

Adding UIButton to UITableView section header

From Dev

Set color of UITableView Section Header

From Dev

Section Header Not Showing in Programmatic UITableView

From Dev

How to localize a static UITableView section?

From Dev

How to localize a static UITableView section?

From Dev

UITableView fixed section with dynamic size

From Dev

Get horizontal header section size

From Dev

Section header cannot be hidden in UITableView with UITableViewAutomaticDimension

From Dev

How to add a UISegmentedControl to Section header of UITableView with margin?

From Dev

UITableview refreshing cells scrolling under section header

From Dev

Design UITableView's section header in Interface Builder

From Dev

iOS UITableView showing section header programmatically

From Dev

UITableView & Sections - to detect if a section header is stays on top

From Dev

How to add a UISegmentedControl to Section header of UITableView with margin?

From Dev

How to make the first row of an UITableView a header of a section?

From Dev

customize UITableView Header Section at run time

From Dev

Section header cannot be hidden in UITableView with UITableViewAutomaticDimension

From Dev

UITableView section header floating after changing tab

From Dev

UITableView section header does not always draw

From Dev

How to add a Cell into a static section UITableView?

From Dev

How to add a Cell into a static section UITableView?

From Java

Changing Font Size For UITableView Section Headers

From Dev

Change the footer size for only one section in the UITableView

From Dev

Change the footer size for only one section in the UITableView

From Dev

UITableView section header appearing over table header view

From Dev

Dynamic UITableView header (not section header) auto layout problems

Related Related

  1. 1

    UITableView Section Header not showing

  2. 2

    How to pad a UITableView section header?

  3. 3

    UITableView section header inset missing

  4. 4

    Adding UIButton to UITableView section header

  5. 5

    Set color of UITableView Section Header

  6. 6

    Section Header Not Showing in Programmatic UITableView

  7. 7

    How to localize a static UITableView section?

  8. 8

    How to localize a static UITableView section?

  9. 9

    UITableView fixed section with dynamic size

  10. 10

    Get horizontal header section size

  11. 11

    Section header cannot be hidden in UITableView with UITableViewAutomaticDimension

  12. 12

    How to add a UISegmentedControl to Section header of UITableView with margin?

  13. 13

    UITableview refreshing cells scrolling under section header

  14. 14

    Design UITableView's section header in Interface Builder

  15. 15

    iOS UITableView showing section header programmatically

  16. 16

    UITableView & Sections - to detect if a section header is stays on top

  17. 17

    How to add a UISegmentedControl to Section header of UITableView with margin?

  18. 18

    How to make the first row of an UITableView a header of a section?

  19. 19

    customize UITableView Header Section at run time

  20. 20

    Section header cannot be hidden in UITableView with UITableViewAutomaticDimension

  21. 21

    UITableView section header floating after changing tab

  22. 22

    UITableView section header does not always draw

  23. 23

    How to add a Cell into a static section UITableView?

  24. 24

    How to add a Cell into a static section UITableView?

  25. 25

    Changing Font Size For UITableView Section Headers

  26. 26

    Change the footer size for only one section in the UITableView

  27. 27

    Change the footer size for only one section in the UITableView

  28. 28

    UITableView section header appearing over table header view

  29. 29

    Dynamic UITableView header (not section header) auto layout problems

HotTag

Archive