From f14e82bb048ca1022f62524cd37e10d94ead7f17 Mon Sep 17 00:00:00 2001 From: Quanlong He Date: Sun, 12 Jul 2015 14:54:34 +0800 Subject: [PATCH 1/2] SampleApp: Add cardImage --- SampleApp/ScanExample/ViewController.m | 4 +++ .../en.lproj/MainStoryboard_iPhone.storyboard | 31 ++++++++++--------- 2 files changed, 21 insertions(+), 14 deletions(-) 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 + From 6c673b65247bf06fc103a80b7640f63ac9f7091d Mon Sep 17 00:00:00 2001 From: Quanlong He Date: Sun, 12 Jul 2015 14:57:41 +0800 Subject: [PATCH 2/2] SampleApp: Support iPhone 6/6+ --- SampleApp/ScanExample/ScanExample-Info.plist | 2 ++ 1 file changed, 2 insertions(+) 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