ios - presentCodeRedemptionSheet 未显示兑换优惠按钮

标签 ios swift in-app-purchase swift5 in-app-subscription

我在每月订阅的 iTunes 帐户中创建优惠代码。 我正在使用 presentCodeRedemptionSheet StoreKit API 在应用程序中输入兑换代码 代码

 let paymentQueue = SKPaymentQueue.default()
    if #available(iOS 14.0, *) {
        paymentQueue.presentCodeRedemptionSheet()
    }

上面的代码向我展示了这个 UI

enter image description here

输入代码后,此 UI 未显示兑换优惠按钮

enter image description here

我被困在这里,请帮帮我:)。

最佳答案

在键盘上点击右下角的Return按钮,而不是右上角的Done按钮。

关于ios - presentCodeRedemptionSheet 未显示兑换优惠按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66274113/

相关文章:

ios - 无论如何,在UIDatePicker中只显示小时和分钟吗?

ios - 位置管理器 :didEnterRegion not called when a beacon is detected

ios - 界面生成器 : cannot assign custom class to table view controller

iphone - 何时使用 restoreCompletedTransactions 进行应用内购买?

iphone - Facebook open-graph - 发布 Action 可靠性

ios - 类理解: Unexpected non-void return value in void function (swift 3)

ios - 快速推送/append 数组

android - 在应用商店外销售 IAP 货币(适用于 Android/iOS 应用)

android - 如何在iOS App 中使用Google In-App Purchase 系统使用在Android App 中购买的数字项目?

iphone - 如何使表格 View 中的详细描述文本可编辑?