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

时间:2012-04-10 02:04:49

标签: ios uibutton paypal

我正在将我的iOS移动库更新到11/2011版本,并在视图尝试加载时收到此错误。

+ [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];
}

有什么想法吗?

0 个答案:

没有答案