苹果iOS IAP管理器接口示例

苹果iOS IAP示例代码:

@interface CBiOSStoreManager : NSObject

+ (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;
zip
Superpigtest.zip 预估大小:55个文件
folder
Superpigtest 文件夹
folder
Superpigtest 文件夹
file
Superpigtest-Info.plist 1KB
file
ViewController.m 2KB
folder
en.lproj 文件夹
file
ViewController.xib 5KB
file
InfoPlist.strings 45B
file
main.m 337B
file
CBiOSStoreManager.m 9KB
file
Superpigtest-Prefix.pch 327B
file
ViewController.h 225B
file
AppDelegate.h 365B
file
CBiOSStoreManager.h 1KB
file
AppDelegate.m 3KB
file
.DS_Store 6KB
folder
Superpigtest.xcodeproj 文件夹
folder
project.xcworkspace 文件夹
file
contents.xcworkspacedata 157B
folder
xcuserdata 文件夹
folder
mac.xcuserdatad 文件夹
file
WorkspaceSettings.xcsettings 383B
file
UserInterfaceState.xcuserstate 17KB
folder
xcuserdata 文件夹
folder
mac.xcuserdatad 文件夹
folder
xcdebugger 文件夹
file
Breakpoints.xcbkptlist 3KB
folder
xcschemes 文件夹
file
xcschememanagement.plist 484B
file
Superpigtest.xcscheme 3KB
file
project.pbxproj 13KB
folder
.git 文件夹
folder
logs 文件夹
file
HEAD 165B
folder
refs 文件夹
folder
heads 文件夹
file
master 165B
folder
info 文件夹
file
exclude 35B
file
index 1KB
file
COMMIT_EDITMSG 15B
folder
objects 文件夹
folder
pack 文件夹
folder
b8 文件夹
file
90557f484ff5243ecdebafac8a56233d383813 251B
folder
info 文件夹
folder
a9 文件夹
file
4e4bc8567c7377a726ba199278b310019e2db0 103B
folder
fa 文件夹
file
ab48cf5b2eb54cdb2a99addf2627a39c5fe15d 158B
folder
bc 文件夹
file
324d33e8e5b42393b8e3dcd1c11ae2b951238a 2KB
folder
11 文件夹
file
bc00c34ed841bc6b82fb2d5e6465cc12356214 89B
folder
c2 文件夹
file
bc388179da74964e88ccfcffb1f33c4ba35591 510B
folder
80 文件夹
file
2fc4941693ad5bf4a08352c1617b642c70e319 1KB
folder
91 文件夹
file
d60dfb048b23a51dbe5c722ab1a13aeaebe435 176B
folder
b1 文件夹
file
3010c92434b1ce3687be9c7f30d8dff897c850 262B
folder
b7 文件夹
file
a74f189c6147e5a8d2eae0064438291456a609 128B
folder
a3 文件夹
file
05a4550b32694833783793323f3f16afecf318 175B
folder
47 文件夹
file
7b28ff8f86a3158a71c4934fbd3a2456717d7a 61B
folder
e1 文件夹
file
8fe1969e14ff48a6b7af244ee0aa80714e2ff9 548B
folder
38 文件夹
file
2c950cac98077b3faea4ec6b6ecdf81ff3bc59 58B
folder
6a 文件夹
file
6ffd1d3f84af03eb5b49b8e7580baa2aaf80e6 295B
folder
65 文件夹
file
d604ea70f8176f89644f24c033bbcad9455785 233B
folder
e7 文件夹
file
178e4d5666a3b75aa48de33b966f0590665a8e 1KB
file
HEAD 23B
file
config 111B
folder
refs 文件夹
folder
heads 文件夹
file
master 41B
folder
tags 文件夹
folder
branches 文件夹
folder
hooks 文件夹
file
pre-applypatch.sample 398B
file
post-commit.sample 160B
file
commit-msg.sample 896B
file
pre-commit.sample 2KB
file
applypatch-msg.sample 452B
file
post-receive.sample 552B
file
prepare-commit-msg.sample 1KB
file
update.sample 4KB
file
post-update.sample 189B
file
pre-rebase.sample 5KB
file
description 73B
...
zip 文件大小:59.95KB