Having spent a while trying to work through the tutorial here i am having problems using this in storyboards
If i do as the writer suggests and create an IBACtion for purchase and then link it to my button it doesn't auto link so i have to manually link it.
.h
-(IBAction) purchase; ( note no sender )
In the .m file
- (IBAction)purchase:(SKProduct *)product{ ( it has a sender
SKPayment *payment = [SKPayment paymentWithProduct:product];
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] addPayment:payment];
NSLog(@"did i make it");
}
If i try to link it i always get an exception error If i create the IBAction in the .h file with a sender it then unhooks the IBAction in the .m file , so i hook it back , and i get an error in
SKPayment *payment = [SKPayment paymentWithProduct:product]; fails with [product identifier error ) which seems to point to it not liking the sender in the IBaction
This is quite difficult to explain so please bare with my attempt but any thoughts or ideas would be most welcome I think this is an excellent tutorial ( one of the best i have seen ) but doesn't seem to work with storyboards Thanks