gpt4 book ai didi

iOS 7 接收空投文件

转载 作者:行者123 更新时间:2023-12-02 04:42:24 25 4
gpt4 key购买 nike

我正在尝试让我的应用程序在文件空投时注册。

根据苹果

To receive files sent via AirDrop, do the following:In Xcode, declare support for the document types your app supports. (Xcode adds the appropriate keys to your app’s Info.plist file.) The system uses this information to determine whether your app can open a given file.Implement the application:openURL:sourceApplication:annotation: method in your app delegate. (The system calls this method when a new file is received.)

I added the method to my app delegate. I'm running the ios7 GM on both devices.I added the following to my app plist for doc types

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>images</string>
<key>LSItemContentTypes</key>
<array>
<string>public.jpeg</string>
<string>public.image</string>
<string>public.png</string>
<string>public.camera-raw-image</string>
<string>public.content</string>
</array>
</dict>
</array>

据我所知我的应用程序:openUrl 方法从未被调用。我究竟做错了什么?我是否必须启用其他功能才能在我的应用程序中注册空投?

最佳答案

即使安装了其他应用程序,我知道事实会显示在通过 iMessage 发送的图像的操作表中(Evernote、GoToMeeting、Halftone、DropBox),当有人通过 AirDrop 向我发送图像时,它不会提示我选择一个应用程序来打开它。由于没有这方面的文档,我怀疑苹果将其视为尝试让您的应用程序显示在邮件附件中图像的操作表中(它们只是不显示)。我想这是因为他们不希望用户对发送给他们的图像未出现在照片应用程序中感到困惑。

关于iOS 7 接收空投文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18792978/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com