2012-06-16 95 views
0

我很想能夠直接從我自己的本機iOS應用程序啓動本地Box iOS應用程序。例如,Dropbox使用db-api-1://,Facebook使用fb://,Square使用square://等。iOS Box應用程序是否響應自定義URL方案?

用於iOS的盒子是否使用類似的URL方案?如果是這樣,是否有文檔說明它可以解析哪些參數?如果沒有,是否有另一種從我的應用程序啓動它的方式?

謝謝!

回答

5

我已經檢查了應用程序的Info.plist中:

<key>CFBundleURLTypes</key> 
<array> 
    <dict> 
     <key>CFBundleURLName</key> 
     <string>com.box.boxapp</string> 
     <key>CFBundleURLSchemes</key> 
     <array> 
      <string>box</string> 
      <string>box-login</string> 
     </array> 
    </dict> 
    <dict> 
     <key>CFBundleURLName</key> 
     <string>com.box.docinteraction.upload</string> 
     <key>CFBundleURLSchemes</key> 
     <array> 
      <string>box-upload-all</string> 
      <string>box-upload-all-direct</string> 
     </array> 
    </dict> 
</array> 

所以總共有4種URL方案:箱,箱登錄,箱上載所有和箱載,清一色直接。但它很難使用它們,如果你沒有任何文檔...

+0

謝謝@ phix23,我不知道可以檢查第三方應用程序的plists!自從幾分鐘前看到你的答案以來,我已經注意到了Box.app包,並確認了你的發現。令人着迷的是,你還可以看到他們的故事板,筆尖和PNG(等等)。再次感謝! – jpsim

+0

http://developers.box.com/onecloud/有關每個計劃如果你想在那裏閱讀更多的信息。 – seanrose

+2

@seanrose你提到盒子方案列在文檔中。這仍然是真的嗎?我沒有看到他們 – Paul

相關問題