2
0

Update for Xcode 12 & add device identifier to UI.

This commit is contained in:
Maarten Billemont
2020-09-02 16:40:41 -04:00
parent b1d8296396
commit 57f275c471
4 changed files with 71 additions and 34 deletions

View File

@@ -38,6 +38,8 @@
self.view.backgroundColor = [UIColor clearColor];
self.dialogView.layer.cornerRadius = 5;
[self.deviceButton setTitle:[PearlKeyChain deviceIdentifier] forState:UIControlStateNormal];
}
- (void)viewWillAppear:(BOOL)animated {
@@ -112,6 +114,11 @@
}];
}
- (IBAction)copyDevice:(id)sender {
[UIPasteboard generalPasteboard].string = [PearlKeyChain deviceIdentifier];
[PearlOverlay showTemporaryOverlayWithTitle:strl( @"Device Identifier Copied" ) dismissAfter:2];
}
#pragma mark - Private
- (void)updateKey {