diff --git a/SampleApp/ScanExample/ScanExample-Info.plist b/SampleApp/ScanExample/ScanExample-Info.plist index 95042bd..29b64b0 100644 --- a/SampleApp/ScanExample/ScanExample-Info.plist +++ b/SampleApp/ScanExample/ScanExample-Info.plist @@ -24,6 +24,8 @@ 1.0 LSRequiresIPhoneOS + UILaunchStoryboardName + MainStoryboard_iPhone UIMainStoryboardFile MainStoryboard_iPhone UIMainStoryboardFile~ipad diff --git a/SampleApp/ScanExample/ViewController.m b/SampleApp/ScanExample/ViewController.m index 387fe50..a6b4d10 100644 --- a/SampleApp/ScanExample/ViewController.m +++ b/SampleApp/ScanExample/ViewController.m @@ -12,6 +12,8 @@ @interface ViewController () @property (weak, nonatomic) IBOutlet UILabel *infoLabel; +@property (weak, nonatomic) IBOutlet UIImageView *logoImage; +@property (weak, nonatomic) IBOutlet UIImageView *snapshotImage; @end @@ -46,6 +48,8 @@ - (void)userDidProvideCreditCardInfo:(CardIOCreditCardInfo *)info inPaymentViewC [self dismissViewControllerAnimated:YES completion:nil]; self.infoLabel.text = [NSString stringWithFormat:@"Received card info. Number: %@, expiry: %02lu/%lu, cvv: %@.", info.redactedCardNumber, (unsigned long)info.expiryMonth, (unsigned long)info.expiryYear, info.cvv]; + self.logoImage.image = info.cardImage; + self.snapshotImage.image = info.cardImage; } - (void)userDidCancelPaymentViewController:(CardIOPaymentViewController *)paymentViewController { diff --git a/SampleApp/ScanExample/en.lproj/MainStoryboard_iPhone.storyboard b/SampleApp/ScanExample/en.lproj/MainStoryboard_iPhone.storyboard index b102348..06386ea 100644 --- a/SampleApp/ScanExample/en.lproj/MainStoryboard_iPhone.storyboard +++ b/SampleApp/ScanExample/en.lproj/MainStoryboard_iPhone.storyboard @@ -1,8 +1,9 @@ - + - - + + + @@ -18,7 +19,7 @@ - + @@ -32,31 +33,33 @@ - + + + + + + + + + + + - - - - - - - - - \ No newline at end of file +