File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
TOPasscodeViewControllerExample Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,12 @@ - (void)confirmNewPasscode:(NSString *)passcode
404
404
self.errorLabel .hidden = NO ;
405
405
return ;
406
406
}
407
+
408
+ if (![self .delegate respondsToSelector: @selector (passcodeSettingsViewController:didChangeToNewPasscode:ofType: )]) {
409
+ return ;
410
+ }
411
+
412
+ [self .delegate passcodeSettingsViewController: self didChangeToNewPasscode: self .potentialPasscode ofType: self .passcodeType];
407
413
}
408
414
409
415
#pragma mark - Button Callbacks -
Original file line number Diff line number Diff line change @@ -60,7 +60,9 @@ - (BOOL)passcodeSettingsViewController:(TOPasscodeSettingsViewController *)passc
60
60
61
61
- (void )passcodeSettingsViewController : (TOPasscodeSettingsViewController *)passcodeSettingsViewController didChangeToNewPasscode : (NSString *)passcode ofType : (TOPasscodeType)type
62
62
{
63
-
63
+ self.passcode = passcode;
64
+ [self .tableView reloadSections: [NSIndexSet indexSetWithIndex: 0 ] withRowAnimation: UITableViewRowAnimationNone];
65
+ [self .navigationController popViewControllerAnimated: YES ];
64
66
}
65
67
66
68
#pragma mark - Table view data source
You can’t perform that action at this time.
0 commit comments