Apple IAP范例

上传者: cloudhsu | 上传时间: 2021-09-15 18:08:11 | 文件大小: 60KB | 文件类型: ZIP
苹果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;

文件下载

资源详情

[{"title":"( 55 个子文件 60KB ) Apple IAP范例","children":[{"title":"Superpigtest","children":[{"title":"Superpigtest","children":[{"title":"Superpigtest-Info.plist <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"ViewController.m <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"en.lproj","children":[{"title":"ViewController.xib <span style='color:#111;'> 5.10KB </span>","children":null,"spread":false},{"title":"InfoPlist.strings <span style='color:#111;'> 45B </span>","children":null,"spread":false}],"spread":true},{"title":"main.m <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"CBiOSStoreManager.m <span style='color:#111;'> 9.09KB </span>","children":null,"spread":false},{"title":"Superpigtest-Prefix.pch <span style='color:#111;'> 327B </span>","children":null,"spread":false},{"title":"ViewController.h <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"AppDelegate.h <span style='color:#111;'> 365B </span>","children":null,"spread":false},{"title":"CBiOSStoreManager.h <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false},{"title":"AppDelegate.m <span style='color:#111;'> 2.52KB </span>","children":null,"spread":false}],"spread":true},{"title":".DS_Store <span style='color:#111;'> 6.00KB </span>","children":null,"spread":false},{"title":"Superpigtest.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 157B </span>","children":null,"spread":false},{"title":"xcuserdata","children":[{"title":"mac.xcuserdatad","children":[{"title":"WorkspaceSettings.xcsettings <span style='color:#111;'> 383B </span>","children":null,"spread":false},{"title":"UserInterfaceState.xcuserstate <span style='color:#111;'> 17.30KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"xcuserdata","children":[{"title":"mac.xcuserdatad","children":[{"title":"xcdebugger","children":[{"title":"Breakpoints.xcbkptlist <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false}],"spread":true},{"title":"xcschemes","children":[{"title":"xcschememanagement.plist <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"Superpigtest.xcscheme <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 12.55KB </span>","children":null,"spread":false}],"spread":true},{"title":".git","children":[{"title":"logs","children":[{"title":"HEAD <span style='color:#111;'> 165B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 165B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"info","children":[{"title":"exclude <span style='color:#111;'> 35B </span>","children":null,"spread":false}],"spread":true},{"title":"index <span style='color:#111;'> 1.19KB </span>","children":null,"spread":false},{"title":"COMMIT_EDITMSG <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"objects","children":[{"title":"pack","children":null,"spread":false},{"title":"b8","children":[{"title":"90557f484ff5243ecdebafac8a56233d383813 <span style='color:#111;'> 251B </span>","children":null,"spread":false}],"spread":true},{"title":"info","children":null,"spread":false},{"title":"a9","children":[{"title":"4e4bc8567c7377a726ba199278b310019e2db0 <span style='color:#111;'> 103B </span>","children":null,"spread":false}],"spread":true},{"title":"fa","children":[{"title":"ab48cf5b2eb54cdb2a99addf2627a39c5fe15d <span style='color:#111;'> 158B </span>","children":null,"spread":false}],"spread":false},{"title":"bc","children":[{"title":"324d33e8e5b42393b8e3dcd1c11ae2b951238a <span style='color:#111;'> 2.38KB </span>","children":null,"spread":false}],"spread":false},{"title":"11","children":[{"title":"bc00c34ed841bc6b82fb2d5e6465cc12356214 <span style='color:#111;'> 89B </span>","children":null,"spread":false}],"spread":false},{"title":"c2","children":[{"title":"bc388179da74964e88ccfcffb1f33c4ba35591 <span style='color:#111;'> 510B </span>","children":null,"spread":false}],"spread":false},{"title":"80","children":[{"title":"2fc4941693ad5bf4a08352c1617b642c70e319 <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":false},{"title":"91","children":[{"title":"d60dfb048b23a51dbe5c722ab1a13aeaebe435 <span style='color:#111;'> 176B </span>","children":null,"spread":false}],"spread":false},{"title":"b1","children":[{"title":"3010c92434b1ce3687be9c7f30d8dff897c850 <span style='color:#111;'> 262B </span>","children":null,"spread":false}],"spread":false},{"title":"b7","children":[{"title":"a74f189c6147e5a8d2eae0064438291456a609 <span style='color:#111;'> 128B </span>","children":null,"spread":false}],"spread":false},{"title":"a3","children":[{"title":"05a4550b32694833783793323f3f16afecf318 <span style='color:#111;'> 175B </span>","children":null,"spread":false}],"spread":false},{"title":"47","children":[{"title":"7b28ff8f86a3158a71c4934fbd3a2456717d7a <span style='color:#111;'> 61B </span>","children":null,"spread":false}],"spread":false},{"title":"e1","children":[{"title":"8fe1969e14ff48a6b7af244ee0aa80714e2ff9 <span style='color:#111;'> 548B </span>","children":null,"spread":false}],"spread":false},{"title":"38","children":[{"title":"2c950cac98077b3faea4ec6b6ecdf81ff3bc59 <span style='color:#111;'> 58B </span>","children":null,"spread":false}],"spread":false},{"title":"6a","children":[{"title":"6ffd1d3f84af03eb5b49b8e7580baa2aaf80e6 <span style='color:#111;'> 295B </span>","children":null,"spread":false}],"spread":false},{"title":"65","children":[{"title":"d604ea70f8176f89644f24c033bbcad9455785 <span style='color:#111;'> 233B </span>","children":null,"spread":false}],"spread":false},{"title":"e7","children":[{"title":"178e4d5666a3b75aa48de33b966f0590665a8e <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"HEAD <span style='color:#111;'> 23B </span>","children":null,"spread":false},{"title":"config <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":"refs","children":[{"title":"heads","children":[{"title":"master <span style='color:#111;'> 41B </span>","children":null,"spread":false}],"spread":true},{"title":"tags","children":null,"spread":false}],"spread":true},{"title":"branches","children":null,"spread":false},{"title":"hooks","children":[{"title":"pre-applypatch.sample <span style='color:#111;'> 398B </span>","children":null,"spread":false},{"title":"post-commit.sample <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":"commit-msg.sample <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"pre-commit.sample <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"applypatch-msg.sample <span style='color:#111;'> 452B </span>","children":null,"spread":false},{"title":"post-receive.sample <span style='color:#111;'> 552B </span>","children":null,"spread":false},{"title":"prepare-commit-msg.sample <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"update.sample <span style='color:#111;'> 3.53KB </span>","children":null,"spread":false},{"title":"post-update.sample <span style='color:#111;'> 189B </span>","children":null,"spread":false},{"title":"pre-rebase.sample <span style='color:#111;'> 4.83KB </span>","children":null,"spread":false}],"spread":true},{"title":"description <span style='color:#111;'> 73B </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}]

评论信息

  • lidongg12345 :
    新手刚开始学习,感谢分享
    2019-09-09
  • kuaihuowz168 :
    哈可以,做完demo可以学习一下
    2019-05-13
  • why1happy :
    学习了。但是架不住,苹果不兼容以前代码的更新啊!
    2016-06-13
  • yejum123 :
    对我是有帮助的,O(∩_∩)O谢谢
    2015-12-12
  • whitehack :
    不错,挺好的一个demo,学习了```
    2015-11-16

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明