应用程序崩溃,崩溃的原因是
“没有委托设置?......你打算如何回调?”
设置了 PGTransactionViewController 的委托。但它仍然没有调用委托方法。
PGTransactionViewController *txnController = [[PGTransactionViewController alloc]
initTransactionForOrder:pgOrder];
#if SERVER_PRODUCTION
txnController.serverType = eServerTypeProduction;
#else
txnController.serverType = eServerTypeStaging;
#endif
txnController.merchant = [PGMerchantConfiguration defaultConfiguration];
// Set the Delegates
txnController.delegate = self;
[self.hostViewController.navigationController pushViewController:txnController animated:YES];
该类是 NSObject 的子类。