@@ -114,18 +114,18 @@ Initialize the license first. In your **ViewController** file, add the following
114114// Add LicenseVerificationListener to the interface
115115@interface ViewController ()<DSLicenseVerificationListener >
116116- (void)setLicense{
117- [ DSLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate: self ] ;
117+ [ DSLicenseManager initLicense:@"DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9" verificationDelegate: self ] ;
118118}
119119-(void)onLicenseVerified:(BOOL)isSuccess error:(NSError * )error
120120{
121- NSLog(@"On License Verified");
122- if (!isSuccess)
123- {
124- NSLog(error.localizedDescription);
125- }else
126- {
127- NSLog(@"License approved");
128- }
121+ NSLog(@"On License Verified");
122+ if (!isSuccess)
123+ {
124+ NSLog(error.localizedDescription);
125+ }else
126+ {
127+ NSLog(@"License approved");
128+ }
129129}
130130...
131131@end
@@ -135,7 +135,7 @@ Initialize the license first. In your **ViewController** file, add the following
135135// Import the DynamsoftLicense module to init license
136136import DynamsoftLicense
137137// Add LicenseVerificationListener to the interface
138- class ViewController: UIViewController, CapturedResultReceiver, LicenseVerificationListener {
138+ class ViewController: UIViewController, LicenseVerificationListener {
139139 func setLicense(){
140140 LicenseManager.initLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", verificationDelegate: self)
141141 }
@@ -287,11 +287,11 @@ func setUpCvr() {
287287 >
288288 > 1 .
289289 ``` objc
290- @interface ViewController ()<DSCapturedResultReceiver >
290+ @interface ViewController ()<DSLicenseVerificationListener, DSCapturedResultReceiver>
291291 ```
292292 2.
293293 ```swift
294- class ViewController: UIViewController, CapturedResultReceiver {
294+ class ViewController: UIViewController, LicenseVerificationListener, CapturedResultReceiver {
295295 ...
296296 }
297297 ```
@@ -378,6 +378,7 @@ func setUpCvr() {
378378 > 1 .
379379 ``` objc
380380 @property (nonatomic, strong) UIButton *captureButton;
381+ @property (nonatomic) BOOL implementCapture;
381382 ...
382383 - (void )addCaptureButton {
383384 [self.view addSubview:self.captureButton];
0 commit comments