To run the example project, clone the repo, and run pod install
from the Example directory first.
To use this pod in your project, here is a quick example:
@interface DDLViewController () <QRRecognitionDelegate>
@property (nonatomic, readonly) DDLScannerManager *scanner;
@end
@implementation DDLViewController
- (void)viewDidLoad {
[super viewDidLoad];
_scanner = [[DDLScannerManager alloc] initWithView:self.view
qrRecognitionDelegate:self];
}
- (void)didScanQRCodeReturningDLScannedLicense:(DDLScannedLicense *)license {
NSLog(@"%@ %@", license.firstName, license.lastName);
}
@end
this will present a full screen camera view which will scan your code and return the result in the
QRRecognitionDelegate
callback.
DDLScannerManager is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'DDLScannerManager'
2020deception, 2020deception@gmail.com
DDLScannerManager is available under the MIT license. See the LICENSE file for more info.