Method has formatting issues.
And you might want to set the autoresizing masks of both container and headerView to `UIViewAutoresizingFlexibleWidth| UIViewAutoresizingFlexibleRightMargin| UIViewAutoresizingFlexibleHeight| UIViewAutoresizingFlexibleBottomMargin` so that it is anchored on top left but can change size if required on orientation change assuming someone decides to put the abnormally large text in table headers and footers.