Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
eliminate visible stutter on canceling the scan
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Goldman committed Mar 12, 2015
1 parent b863b8f commit c8c6e29
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/CardIOViewController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,10 @@ - (void)manualEntry:(id)sender {

- (void)cancel:(id)sender {
[self.context.scanReport reportEventWithLabel:@"scan_cancel" withScanner:self.cardIOView.scanner];

// Hiding the CardIOView causes it to call its stopSession method, thus eliminating a visible stutter.
// See https://github.com/card-io/card.io-iOS-SDK/issues/97
self.cardIOView.hidden = YES;

[self.navigationController setNavigationBarHidden:NO animated:YES]; // to restore the color of the status bar!

Expand Down

0 comments on commit c8c6e29

Please sign in to comment.