7

I am using this API to add multiple grouped passes to Apple Wallet. I realized that added passes in the wallet doesn't follow the order of array [PKPass] that I gave it to this API.

public func addPasses(passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)

The interesting thing to note here is when I tap on View All before adding the passes it does show all the passes in order but after tapping on Add All and then launch the Wallet app to see the order od added pass it's not same anymore.

Any clue why this is happening and how to maintain an order?

4

1 回答 1

2

没有文档或PassKitAPI 说明可以通过的顺序出现在 Wallet 应用程序中。

只能按照此处所述手动完成。

要重新排列您的通行证,请点住通行证,然后将其拖到新位置。对于 iOS 7 或更高版本,您的更改将在您的所有设备上更新。

于 2016-12-14T06:38:07.743 回答