Skip to content

Commit

Permalink
Fixed footer view sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyer committed Apr 19, 2018
1 parent fc75b88 commit e4768ac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions PAYFormBuilder/controller/PAYFormTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,12 @@ - (void)viewDidLoad {
[self.tableView enableTapToEndEditing];

[self buildFooter];
[self updateViewConstraints];
}

- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self fixHeaderFooterView];
}

- (void)viewDidAppear:(BOOL)animated {
Expand Down Expand Up @@ -182,7 +187,7 @@ - (void)onDone:(id)sender {

#pragma mark - Layout header view

- (void)updateViewConstraints {
- (void)fixHeaderFooterView {
if (self.tableView.tableHeaderView) {
self.tableView.tableHeaderView = [self updateFixedHeightOfView:self.tableView.tableHeaderView];
}
Expand Down

0 comments on commit e4768ac

Please sign in to comment.