_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
在你的类里面。
关于ios - 在 PayPal 中启用信用卡付款会导致模拟器和物理设备崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41501170/