Apple IAP范例

时间:2015-11-21 04:26:22
【文件属性】:

文件名称:Apple IAP范例

文件大小:60KB

文件格式:ZIP

更新时间:2015-11-21 04:26:22

iphone ios

苹果iOS IAP范例代码 #import #import @interface CBiOSStoreManager : NSObject { int buyType; NSString* _buyProductIDTag; } + (CBiOSStoreManager*) sharedInstance; - (void) buy:(NSString*)buyProductIDTag; - (bool) CanMakePay; - (void) initialStore; - (void) releaseStore; - (void) requestProductData:(NSString*)buyProductIDTag; - (void) provideContent:(NSString *)product; - (void) recordTransaction:(NSString *)product; - (void) requestProUpgradeProductData:(NSString*)buyProductIDTag; - (void) paymentQueue:(SKPaymentQueue *)queue updatedTransactions:(NSArray *)transactions; - (void) purchasedTransaction: (SKPaymentTransaction *)transaction; - (void) completeTransaction: (SKPaymentTransaction *)transaction; - (void) failedTransaction: (SKPaymentTransaction *)transaction; - (void) paymentQueueRestoreCompletedTransactionsFinished: (SKPaymentTransaction *)transaction; - (void) paymentQueue:(SKPaymentQueue *) paymentQueue restoreCompletedTransactionsFailedWithError:(NSError *)error; - (void) restoreTransaction: (SKPaymentTransaction *)transaction;


【文件预览】:
Superpigtest
----Superpigtest()
--------Superpigtest-Info.plist(1KB)
--------ViewController.m(2KB)
--------en.lproj()
--------main.m(337B)
--------CBiOSStoreManager.m(9KB)
--------Superpigtest-Prefix.pch(327B)
--------ViewController.h(225B)
--------AppDelegate.h(365B)
--------CBiOSStoreManager.h(1KB)
--------AppDelegate.m(3KB)
----.DS_Store(6KB)
----Superpigtest.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(13KB)
----.git()
--------logs()
--------info()
--------index(1KB)
--------COMMIT_EDITMSG(15B)
--------objects()
--------HEAD(23B)
--------config(111B)
--------refs()
--------branches()
--------hooks()
--------description(73B)

网友评论