【发布时间】:2011-12-31 01:10:00
【问题描述】:
我只是在 ViewDidLoad 中为 paypal 按钮编写代码,如下所示
UIButton *button = [[PayPal getInstance] getPayButtonWithTarget:self andAction:@selector(payWithPayPal) andButtonType:BUTTON_278x43];
并得到如下崩溃
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.)
我已经在self中实现了所有需要的委托方法,也使用了Delegate,
什么是问题,有人知道吗?
【问题讨论】:
-
如果这是同一个问题,那么请考虑在原版中添加赏金而不是重新发布。
-
仔细阅读,它没有重复,同样的事情在我的模拟器上运行良好,可以看到按钮,按下它,但是在 iPod Touch 上运行,然后它给出了错误。
-
这里是 sigabrt,有超时,希望你能删除近距离投票,
-
关闭投票不能被删除。但是,关闭一个问题需要 5 个关闭投票。根据您的 cmets,这可能不会发生。