Skip to content

Commit

Permalink
Another attempt to fix footer view sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonseyer committed Apr 19, 2018
1 parent e4768ac commit 7bee145
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PAYFormBuilder/controller/PAYFormTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ - (void)viewDidLoad {
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self fixHeaderFooterView];

dispatch_async(dispatch_get_main_queue(), ^{
[self fixHeaderFooterView];
});
}

- (void)viewDidAppear:(BOOL)animated {
Expand Down Expand Up @@ -194,7 +197,6 @@ - (void)fixHeaderFooterView {
if (self.tableView.tableFooterView) {
self.tableView.tableFooterView = [self updateFixedHeightOfView:self.tableView.tableFooterView];
}
[super updateViewConstraints];
}

- (UIView *)updateFixedHeightOfView:(UIView *)view {
Expand Down

0 comments on commit 7bee145

Please sign in to comment.