随着这些行的代码:终止应用程序由于未捕获的异常 'NSInvalidArgumentException',原因:“ - [NSDecimalNumber长度]:
PayPalPayment *payment = [[PayPalPayment alloc] init];
NSLog(@"Price %@",[self.product objectForKey:@"Price"]);
NSString *string = [self.product objectForKey:@"Price"];
payment.amount = [[NSDecimalNumber alloc] initWithString:string];
我的应用程序与该日志崩溃:
[NSDecimalNumber length]: unrecognized selector sent to instance
NSLog回来了:
Price 96.67
Whay is it crashing ??? ???