I am developing an app with some chargeable subscription, I want to add in-app purchase for that, so can anyone help me find a helping tutorial or example for it, in ios-10 (objective-c). I have been searching example for it , all I get is for swift. Thank you in advance !
我正在开发一个应用程序,需要付费订阅,我想为它添加应用内购买,所以谁能帮我找到一个帮助教程或例子,在ios-10 (objective-c)中。我一直在寻找它的例子,我得到的只是斯威夫特。提前谢谢你!
1 个解决方案
#1
11
Have a deep look here:
请在这里做一个深入的观察:
https://www.raywenderlich.com/127423/in-app-purchases-tutorial
https://www.raywenderlich.com/127423/in-app-purchases-tutorial
and
和
https://www.appcoda.com/in-app-purchase-tutorial/
https://www.appcoda.com/in-app-purchase-tutorial/
Objc version:
Objc版本:
https://www.tutorialspoint.com/ios/ios_in_app_purchase.htm http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial
https://www.tutorialspoint.com/ios/ios_in_app_purchase.htm http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial
and
和
https://www1.in.tum.de/lehrstuhl_1/teaching/tutorials/511-sgd-ws13-tutorial-store-kit
https://www1.in.tum.de/lehrstuhl_1/teaching/tutorials/511-sgd-ws13-tutorial-store-kit
And from iOS 9.0, in app purchase restore has an issue. Try to use this for restore purchase.
在iOS 9。0中,应用购买恢复有问题。尝试使用这个来恢复购买。
-(IBAction)restorePurchase:(id)sender
{
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}
#1
11
Have a deep look here:
请在这里做一个深入的观察:
https://www.raywenderlich.com/127423/in-app-purchases-tutorial
https://www.raywenderlich.com/127423/in-app-purchases-tutorial
and
和
https://www.appcoda.com/in-app-purchase-tutorial/
https://www.appcoda.com/in-app-purchase-tutorial/
Objc version:
Objc版本:
https://www.tutorialspoint.com/ios/ios_in_app_purchase.htm http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial
https://www.tutorialspoint.com/ios/ios_in_app_purchase.htm http://www.techotopia.com/index.php/An_iOS_7_In-App_Purchase_Tutorial
and
和
https://www1.in.tum.de/lehrstuhl_1/teaching/tutorials/511-sgd-ws13-tutorial-store-kit
https://www1.in.tum.de/lehrstuhl_1/teaching/tutorials/511-sgd-ws13-tutorial-store-kit
And from iOS 9.0, in app purchase restore has an issue. Try to use this for restore purchase.
在iOS 9。0中,应用购买恢复有问题。尝试使用这个来恢复购买。
-(IBAction)restorePurchase:(id)sender
{
[[SKPaymentQueue defaultQueue] addTransactionObserver:self];
[[SKPaymentQueue defaultQueue] restoreCompletedTransactions];
}