在PayPal中使用信用卡支付付款会使模拟器和物理设备崩溃

问题描述 投票:1回答:1
 _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
ios objective-c paypal
1个回答
1
投票

请进口

#import "CardIO.h"

在您的ViewController.h文件中,还要在您的类中添加CardIOPaymentViewControllerDelegate

© www.soinside.com 2019 - 2024. All rights reserved.