Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions BZGFormViewController/BZGFormViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,17 @@ - (id)initWithStyle:(UITableViewStyle)style
return self;
}

- (instancetype)initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
if (self) {
_formCellsBySection = [NSMutableArray array];
_style = UITableViewStyleGrouped;
_showsValidationCell = YES;
}
return self;
}

- (void)dealloc
{
[[NSNotificationCenter defaultCenter] removeObserver:self];
Expand Down Expand Up @@ -305,6 +316,10 @@ - (void)textFieldDidEndEditing:(UITextField *)textField
}

[self updateInfoCellBelowFormCell:cell];

[UIView animateWithDuration:0.3 animations:^{
[self.tableView setContentInset:UIEdgeInsetsZero];
}];
}

- (BOOL)textFieldShouldReturn:(UITextField *)textField
Expand Down