我正在使用此 API 将多个分组通行证添加到 Apple Wallet。 我意识到钱包中添加的通行证不遵循我提供给此 API 的数组 [PKPass] 的顺序。
public func addPasses(passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)
这里要注意的有趣的事情是,当我在添加 channel 之前点击查看全部
时,它确实按顺序显示了所有 channel ,但是在点击添加所有
之后,然后启动钱包应用程序以查看添加的订单,但它不再相同了。
知道为什么会发生这种情况以及如何维持秩序吗?
最佳答案
电子钱包应用程序中没有说明可以通过的顺序的文档或 PassKit
API。
只能按照说明手动完成 here .
To reorder your passes, tap and hold a pass, then drag it to a new place. With iOS 7 or later, your change will update on all of your devices.
关于ios - 添加到 Apple Wallet 时,您可以控制通行证的顺序吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40881989/