1

http://i.stack.imgur.com/K81uU.png

你可以看到图片,有一个打开按钮,图片是存折通行证,我没有找到任何api或通行证属性来完成它。在 pass.json

"backFields" : [
  {
    "key" : "extras",
    "label" : "Discount",
    "value" : "Your friends receive 50% off price"
  },
 {
    "key" : "phone",
    "label" : "Phone",
    "value" : "800-1234567890"
  },

  {
    "key" : "date",
    "label" : "Valid time:",
    "dateStyle" : "PKDateStyleMedium",      
    "timeStyle" : "PKDateStyleNone",      
    "value" : "2013-01-03T00:00Z"
  },
  {
    "key" : "terms",
    "label" : "TERMS AND CONDITIONS",
    "value" : "Lessons must be used between 1/1/2013 and 3/1/2013.  Appointments for lessons must be made no less than 48 hours in advance.  Customer must be able to swim."
  }
]

我找不到其他钥匙或标签来完成它。你能帮助我吗

4

1 回答 1

3

如果您想为您的应用程序添加链接,我相信您应该使用associatedStoreIdentifiers顶级密钥。

选修的。关联应用程序的 iTunes Store 项目标识符(也称为 Adam ID)列表。仅使用列表中的一项 - 与当前设备兼容的应用程序的第一项标识符。如果未安装该应用程序,该链接将打开 App Store 并显示该应用程序。如果该应用程序已安装,该链接将启动该应用程序。

http://developer.apple.com/library/ios/#documentation/userexperience/Reference/PassKit_Bundle/Chapters/TopLevel.html

于 2013-01-10T07:58:10.900 回答