_payPalConfig.acceptCreditCards = NO;
如果我将_payPalConfig.acceptCreditCards
设置为YES,则应用程序崩溃并出现以下异常:
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target <PayPalPaymentViewController: 0x7f8b03029a00
请进口
#import "CardIO.h"
在您的ViewController.h文件中,还要在您的类中添加CardIOPaymentViewControllerDelegate
。