QRCodeReaderViewController
QRCodeReaderViewController copied to clipboard
added cancel block
Add cancel block for use case where you use a block completion instead of delegate.
Do you really need a cancel block? The completionBlock
provides the same purpose.
Hi, can you check, I tried to invoke the completion block trying to cancel the Qr code reader but it does not get fired? Otherwise no need, that's all I was trying to do.
Thanks
Sent from my iPhone
On Jun 10, 2016, at 1:01 PM, Yannick Loriot [email protected] wrote:
Do you really need a cancel block? The completionBlock provides the same purpose.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Sorry for the late,
I've tried and everything works for me:
[vc setCompletionWithBlock:^(NSString *resultAsString) {
NSLog(@"Completion with result: %@", resultAsString);
}];
And when the cancel button is pushed I got:
Completion with result: (null)