QRCodeReaderViewController icon indicating copy to clipboard operation
QRCodeReaderViewController copied to clipboard

added cancel block

Open robegamesios opened this issue 8 years ago • 3 comments

Add cancel block for use case where you use a block completion instead of delegate.

robegamesios avatar Jun 10 '16 07:06 robegamesios

Do you really need a cancel block? The completionBlock provides the same purpose.

yannickl avatar Jun 10 '16 20:06 yannickl

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.

robegamesios avatar Jun 10 '16 23:06 robegamesios

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)

yannickl avatar Sep 23 '16 16:09 yannickl