xcode - Unrecognized Selector Sent To Class Error -
so have class called iap .h , .m file. .h looks this:
#import <uikit/uikit.h> #import <storekit/storekit.h> @interface iap : uiviewcontroller <skproductsrequestdelegate, skpaymenttransactionobserver, uialertviewdelegate> +(void)myiapwithitem; @end
but when call function myiapwithitem , error. call this:
[iap myiapwithitem];
also there item paramater took off test.
do have implementation in .m file?
// in iap.m @implementation iap +(void)myiapwithitem { // } @end
Comments
Post a Comment