About
-(void) Productsrequest: (skproductsrequest *) Request Didreceiveresponse: (Skproductsresponse *) response
The method does not respond or crashes directly.
First case:
In this class, call the
It is possible that the Skproductrequest object has been disposed.
The request is likely to take a few seconds to complete, and this may exceed the life cycle of the delegate object, so make sure that it is long enough as much as possible.
Set it to a global variable or property (Nonatomic, Strong).
second case :
Instead of using the IPA directly in this class, the new Helperipa class calls inside the purchase,
You need to implement a singleton in the helper class
+ (class name *) sharedpurchase {
Static Class name * _SHAREDP = nil;
Static dispatch_once_t Oncetoken;
Dispatch_once (&oncetoken, ^{
_SHAREDP = [[Class name alloc] init];
});
return _SHAREDP;
}
In arc mode, the helper class is called, and the Skproductrequest object is reclaimed directly by the system after the method is executed in parentheses.
IOS Crash Report Skproductsrequest