2012-10-15 76 views
0

我想整合ZOOZ应用程序支付,但它给我错误的运行时间。它执行我的完整方法,然后崩溃应用程序。我的方法是这样的Zooz安全在应用程序支付运行时错误

-(IBAction)buyMore{ 
    paymentSuccessLabel.hidden = YES; 

    ZooZ * zooz = [ZooZ sharedInstance]; 

    zooz.sandbox = YES; 

    zooz.tintColor = [UIColor colorWithRed:1 green:0.8 blue:0 alpha:1]; 

    zooz.barButtonTintColor = [UIColor darkGrayColor]; 

    ZooZPaymentRequest * req = [zooz createPaymentRequestWithTotal:12.1 invoiceRefNumber:@"test invoice ref-1234" delegate:self]; 

    req.currencyCode = @"EUR"; 

    req.payerDetails.firstName = @"Some"; 

    req.payerDetails.email = @"[email protected]"; 

    [email protected]""; 

    req.requireAddress = NO; 

    ZooZInvoiceItem * item = [ZooZInvoiceItem invoiceItem:12.1 quantity:1 name:@"T-Shirt"]; 
    item.additionalDetails = @"Free 200 characters custom description"; 
    item.itemId = @"refId-12345678"; // optional 

    [req addItem:item]; 

    req.invoice.additionalDetails = @"Custom invoice description text"; 

    [zooz openPayment:req forAppKey:@"27edd0b5-7289-4e6a-9dcb-201179701496"]; 

} 

和应用程序日志的崩溃是这个

Unknown class ZooZCardViewController in Interface Builder file. 
Unknown class ZooZButton in Interface Builder file. 
Unknown class ZooZFooterPanel in Interface Builder file. 
Unknown class ZooZSpinner in Interface Builder file. 
Unknown class ZooZBasePanel in Interface Builder file. 
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UICustomObject 0x4c12e0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key pageControl.' 

请帮助我,我很担心。

回答

0

看来你没有正确包含ZooZ SDK库文件。 我建议你先删除对ZooZ的所有引用。 也看看你的目标属性的“框架搜索路径”,并确保没有参考ZooZ。

然后只需右键单击您的项目文件,选择添加新文件,然后选择ZooZ.embeededframework文件夹。 (不要标记复制文件复选框)并标记所有要添加到的目标。

ZooZ SDK文档中包含屏幕快照,包括截图。 还要确保你在目标的“Other Linker Flags”属性中设置了“-ObjC”的值