如何将 ITF 条形码用于钱包通行证?

Posted

技术标签:

【中文标题】如何将 ITF 条形码用于钱包通行证?【英文标题】:How to use ITF barcode for wallet passes? 【发布时间】:2019-10-25 13:18:22 【问题描述】:

Apple 的 pass sais 文档

For the barcode dictionary, you can use only the following values: 
PKBarcodeFormatQR, PKBarcodeFormatPDF417, or PKBarcodeFormatAztec. 
For dictionaries in the barcodes array, you may also use 
PKBarcodeFormatCode128.

是否可以通过通行证使用 ITF 条形码?专门询问 storeCard 类型,不能使用徽标、图标或条形图像。

【问题讨论】:

抱歉,Apple 目前仅支持这些。 【参考方案1】:

唯一可用的格式是 PKBarcodeFormatQR、PKBarcodeFormatPDF417、PKBarcodeFormatAztec 和 PKBarcodeFormatCode128,其中 PKBarcodeFormatCode128 与 watchOS 不兼容。

回答您的问题:不,Apple 目前不支持 ITF 条形码。

【讨论】:

以上是关于如何将 ITF 条形码用于钱包通行证?的主要内容,如果未能解决你的问题,请参考以下文章