2011-11-17 98 views
0

我只是写在viewDidLoad中PayPal Button无法识别的选择器?

UIButton *button = [[PayPal getInstance] getPayButtonWithTarget:self andAction:@selector(payWithPayPal) andButtonType:BUTTON_278x43]; 

如下PayPal按钮代码并获得坠毁如下

2011-11-17 05:41:39.541 MothProject[654:707] -[PayPal getPayButtonWithTarget:andAction:andButtonType:andButtonText:]: unrecognized selector sent to instance 0x2bd2d0 
2011-11-17 05:41:39.548 MothProject[654:707] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PayPal getPayButtonWithTarget:andAction:andButtonType:andButtonText:]: unrecognized selector sent to instance 0x2bd2d0' 
*** First throw call stack: 
(0x328d78bf 0x367411e5 0x328daacb 0x328d9945 0x32834680 0x8f9b 0x311837ff 0x3118fc39  0x3118faa9 0x3118f98f 0x3118f15b 0x3118ef53 0x31183673 0x31183349 0x77ad 0x311fd565 0x31275ce7 0x37a6e943 0x328aba63 0x328ab6c9 0x328aa29f 0x3282d4dd 0x3282d3a5 0x37f6efed 0x31178743 0x2831 0x27c8) 
terminate called throwing an exceptionProgram received signal: “SIGABRT”. 
Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.) 

我已经使用实现自我所需的所有委托方法,并且还使用代表太,

什么是问题,有人有想法吗?

+0

可能重复[宝iphone timout错误连连(http://stackoverflow.com/questions/8028343/ paypal-iphone-timout-error-again-and-again) – PengOne

+0

如果这是同一个问题,那么考虑给原版添加赏金,而不是重新发布。 – PengOne

+0

仔细阅读它,它没有被复制,同样的事情与我的模拟器工作正常,可以看到按钮,按下它,但在iPod Touch上运行,然后它给出了该错误。 –

回答

0

我想你需要先初始化的PayPal实例,使用方法

-initializeWithAppID:forEnvironment: 
+0

亲爱的我已经完成了它,在同一个类中,在委托中尝试过,尝试过使用线程,它在它之后返回成功消息,还有一些其他的东西, –

+0

它与所有OS ,除了iOS5,http://stackoverflow.com/questions/8158933/paypal-iphone-integration-error –

相关问题