【发布时间】:2015-04-18 19:16:36
【问题描述】:
我在这里学习了这个教程:https://github.com/paypal/PayPal-iOS-SDK/blob/master/docs/single_payment.md
在我的项目中,我有一个视图控制器,在这个视图控制器中,我有一个触发示例中代码的按钮,所以我所做的是创建 PayPalViewController 并使用上面的代码。
我如何打开 PayPalViewController:
- (void)handleStep2UploadTap2:(UITapGestureRecognizer *)recognizer {
AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
appDelegate.paypalViewController = [PayPalViewController new];
[self presentViewController:appDelegate.paypalViewController animated:YES completion:nil];
}
一旦触发按钮,屏幕就会变为空白。 Xcode工作正常没有错误没有崩溃,为什么屏幕会黑屏?
【问题讨论】:
-
好吧,我想我的问题是:1)你是否完成了它列出的所有其他步骤 2)
PayPalPaymentViewController有一个通过initWithPayment:configuration:delegate:设计的初始化程序和 3)什么是 @ 987654325@?一个子类 UIVIewController?
标签: ios objective-c xcode paypal