¡@

Home 

2014/10/15 ¤U¤È 10:10:14

iphone Programming Glossary: inapppurchaserhascompletedtransactionsuccessfully

How do I add consumable In App Purchases using NSUserDefaults and not my own server?

http://stackoverflow.com/questions/13465804/how-do-i-add-consumable-in-app-purchases-using-nsuserdefaults-and-not-my-own-ser

#import Foundation Foundation.h #import StoreKit StoreKit.h @protocol InAppPurchaserDelegate NSObject void InAppPurchaserHasCompletedTransactionSuccessfully SKPaymentTransaction transaction productID NSString productID void InAppPurchaserHasCompletedTransactionUnsuccessfully SKPaymentTransaction.. void completeTransaction SKPaymentTransaction transaction if delegate nil delegate respondsToSelector @selector InAppPurchaserHasCompletedTransactionSuccessfully productID delegate InAppPurchaserHasCompletedTransactionSuccessfully transaction productID transaction.payment.productIdentifier.. nil delegate respondsToSelector @selector InAppPurchaserHasCompletedTransactionSuccessfully productID delegate InAppPurchaserHasCompletedTransactionSuccessfully transaction productID transaction.payment.productIdentifier SKPaymentQueue defaultQueue finishTransaction transaction ends..