如何在存折上添加打开按钮

时间:2013-01-10 05:02:11

标签: ios passbook

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

你可以看到图片,有一个打开的按钮,图片是存折传递,我没有找到任何api或pass属性来完成它。在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."
  }
]

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

1 个答案:

答案 0 :(得分:3)

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

  

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

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