Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/unix/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios +[PayPal getPayPalInst]:无法识别的选择器发送到类错误_Ios_Uibutton_Paypal - Fatal编程技术网

Ios +[PayPal getPayPalInst]:无法识别的选择器发送到类错误

Ios +[PayPal getPayPalInst]:无法识别的选择器发送到类错误,ios,uibutton,paypal,Ios,Uibutton,Paypal,我正在将iOS mobile library更新到2011年11月的版本,当视图尝试加载时出现此错误 +[PayPal getPayPalInst]:发送到类0x1c4e50的无法识别的选择器 2012-04-09 15:32:06.201 Baublet[16789:15203]*由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“+[PayPal getPayPalInst]:无法识别的选择器发送到类0x1c4e50” *第一次抛出调用堆栈: 这里

我正在将iOS mobile library更新到2011年11月的版本,当视图尝试加载时出现此错误

+[PayPal getPayPalInst]:发送到类0x1c4e50的无法识别的选择器 2012-04-09 15:32:06.201 Baublet[16789:15203]*由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“+[PayPal getPayPalInst]:无法识别的选择器发送到类0x1c4e50” *第一次抛出调用堆栈:

这里是我得到SIGABRT的地方:

  UIButton *button = [[PayPal getPayPalInst] getPayButtonWithTarget:self andAction:@selector(payWithPayPal) andButtonType:BUTTON_278x43];
    [self.iPhonePayPalView addSubview:button];
我也尝试过这种方法:

 [self addLabelWithText:@"Simple Payment" andButtonWithType:BUTTON_294x43   withAction:@selector(payWithPayPal)];


- (void)addLabelWithText:(NSString *)text andButtonWithType:(PayPalButtonType)type withAction:(SEL)action {

UIButton *button = [[PayPal getPayPalInst] getPayButtonWithTarget:self andAction:action andButtonType:type];
CGRect frame = button.frame;
frame.origin.x = 15;
frame.origin.y = 130;
button.frame = frame;
[self.iPhonePayPalView addSubview:button];
}

有什么想法吗?

您是否已转向新的Paypal API?他们改变了一些方法的名称。检查文档,看看你的实现是否仍然有效——显然不是。是的,这就是我正在尝试做的。我已经把其他的东西都换了,但这不会改变。