OTP setup view controller gets show and parses url strings

This commit is contained in:
Michael Starke
2020-12-31 20:23:45 +01:00
parent 06413b26df
commit 7a4d80fd47
7 changed files with 87 additions and 27 deletions

View File

@@ -9,6 +9,7 @@
#import "MPTOTPViewController.h"
#import <KeePassKit/KeePassKit.h>
#import "MPEntryInspectorViewController.h"
@interface MPTOTPViewController ()
@@ -22,6 +23,12 @@
self.remainingTimeButton.title = @"";
}
- (IBAction)showOTPSetup:(id)sender {
MPEntryInspectorViewController *vs = (MPEntryInspectorViewController*)self.parentViewController;
[vs showOTPSetup:sender];
}
- (void)setRepresentedObject:(id)representedObject {
NSArray *notificationNames = @[KPKWillAddAttributeNotification, KPKDidAddAttributeNotification, KPKWillChangeAttributeNotification, KPKDidChangeAttributeNotification, KPKWillRemoveAttributeNotification, KPKDidRemoveAttributeNotification];
if(self.representedObject) {