在应用程序中购买NSTableCellView

时间:2018-01-26 22:15:15

标签: swift macos uitableview nstableview storekit

在iOS应用中,我使用此方法在单元格上设置复选标记,如果以前购买了应用内购买。这是代码:

class ProductCell: UITableViewCell{
static let priceFormatter: NumberFormatter = {
let formatter = NumberFormatter()
formatter.formatterBehavior = .behavior10_4
formatter.numberStyle = .currency

return formatter
}()

var product: SKProduct? {
      if myproduct.store.isProductPurchased(product.productIdentifier) {


    accessoryType = .checkmark
    accessoryView = nil
    detailTextLabel?.text = ""
  }
 }

我的问题是我无法找到macOS Development的accessoryType通讯员。任何人都可以帮助我吗?

0 个答案:

没有答案