【问题标题】:PKContact in iOS 9 missing street [duplicate]iOS 9中的PKContact缺少街道[重复]
【发布时间】:2015-09-15 16:53:27
【问题描述】:

我正在 iOS 9 上使用 PKPaymentAuthorizationViewControllerDelegate 中的这种新委托方法进行 Apple Pay 集成:

paymentAuthorizationViewController:didSelectShippingContact:completion

这提供了一个PKContact 参数,该参数具有CNPostalAddress 对象形式的送货地址。

无论提供什么地址(即使是模拟器中的演示地址),街道始终是空的。

例如:

<CNPostalAddress: 0x7fbf9aed8bd0: street=, city=Hillsborough, state=CA, postalCode=94010, country=, countryCode=us, formattedAddress=(null)>

这是 iOS 错误吗?有没有其他人遇到过这个问题?

【问题讨论】:

    标签: ios objective-c applepay passkit


    【解决方案1】:

    原来返回的地址总是部分的,Apple 没有很好地记录这一点。见这里:

    Loading Apple Pay Shipping Address No Street

    【讨论】:

      猜你喜欢
      • 2015-11-07
      • 1970-01-01
      • 2015-11-25
      • 2020-05-15
      • 1970-01-01
      • 1970-01-01
      • 2020-01-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多