objective c - UIButton error with SKPayment -
i used tutorial how add in-app purchase ios application? skpayment (verbatim) , having trouble linking purchase buttons on storyboard code.
- (ibaction)purchase:(skproduct *)product{
i keep getting following error.
[uibutton productidentifier]: unrecognized selector sent instance 0x7ffa08cfbe90
i understand tutorial uses xib file using storyboard file game link buttons. can please tell me how link purchase button in storyboard the
- (ibaction)purchase:(skproduct *)product{
code without getting unrecognized selector error?
it's because ibaction
expects sender
first parameter. , when it's "linked" uibutton
, uibutton
sender
(it's automatically sent). why error, uibutton
doesn't know selector productidentifier
.
if answer linked on so, methods linked ib aren't one. 1 called [self purchase:someskproduct]
, that's why it's not causing crash on his/her code.
well, haven't played storekitframework, seems method shouldn't ibaction (either here on on answer, it's confusing, proof: current issue.). should -(void)purchase:(skproduct *)product
.
Comments
Post a Comment