¡@

Home 

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

iphone Programming Glossary: inapppurchaserdelegate

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

include this class also.. InAppPurchaser.h #import Foundation Foundation.h #import StoreKit StoreKit.h @protocol InAppPurchaserDelegate NSObject void InAppPurchaserHasCompletedTransactionSuccessfully SKPaymentTransaction transaction productID NSString productID.. error NSError error @end @interface InAppPurchaser NSObject SKPaymentTransactionObserver @property nonatomic retain id InAppPurchaserDelegate delegate #pragma mark Instantiation... id init InAppPurchaser purchaser InAppPurchaser purchaserWithDelegate id InAppPurchaserDelegate.. delegate #pragma mark Instantiation... id init InAppPurchaser purchaser InAppPurchaser purchaserWithDelegate id InAppPurchaserDelegate delegate #pragma mark Utilities... void purchaseProductWithProductIdentifier NSString productID quantity NSInteger quantity..