Ios Paytm委托问题,由于未设置委托,应用程序崩溃
应用程序正在崩溃,崩溃原因是 “没有委托集?…您将如何进行回调?” 已设置PGTransactionViewController的委托。但它仍然没有调用委托方法Ios Paytm委托问题,由于未设置委托,应用程序崩溃,ios,objective-c,delegates,paytm,Ios,Objective C,Delegates,Paytm,应用程序正在崩溃,崩溃原因是 “没有委托集?…您将如何进行回调?” 已设置PGTransactionViewController的委托。但它仍然没有调用委托方法 PGTransactionViewController *txnController = [[PGTransactionViewController alloc] initTransactionForOrder:pgOrd
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的子类。是否使用这些委托方法
- (void)didSucceedTransaction:(PGTransactionViewController *)controller
response:(NSDictionary *)response
{
DEBUGLOG(@"ViewController::didSucceedTransactionresponse= %@", response);
}
- (void)didFailTransaction:(PGTransactionViewController *)controller error:(NSError *)error response:(NSDictionary *)response
{
DEBUGLOG(@"ViewController::didFailTransaction error = %@ response= %@", error, response);
}
- (void)didCancelTransaction:(PGTransactionViewController *)controller error:(NSError*)error response:(NSDictionary *)response
{
DEBUGLOG(@"ViewController::didCancelTransaction error = %@ response= %@", error, response);
}
- (void)didFinishCASTransaction:(PGTransactionViewController *)controller response:(NSDictionary *)response
{
DEBUGLOG(@"ViewController::didFinishCASTransaction:response = %@", response);
}
你遵守协议了吗?是的,我遵守了这个协议。是的,除了最后一个,我使用的是相同的委托方法。在我的代码中,delgate没有调用success和cancelled。在我的情况下,在事务完成后,这些委托调用都没有。成功/失败/取消后不调用任何内容。怎么办??