首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >注册我的应用程序的mime-type /等

注册我的应用程序的mime-type /等
EN

Stack Overflow用户
提问于 2012-09-07 00:55:58
回答 1查看 161关注 0票数 0

在检查了几个问题,遵循了许多在线教程后,我仍然无法让我的应用程序注册我的mime类型。我觉得这里一定有一些我还没有意识到的魔力。除了修改我的plist文件之外,还有其他步骤吗?还是我看错了?

我唯一觉得可能是一个额外的问题是,我已经更改了我的项目名称,并且可能有一些东西与构建设置和/或配置文件不一致?它是存档的,我可以安装用于临时分发,我只是不能在电子邮件中获得文件来注册应用程序。

该文件是我使用NSJSONSerialization准备的JSON数据。

这是我的plist:

代码语言:javascript
复制
    <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>CFBundleDevelopmentRegion</key>
            <string>English</string>
        <key>CFBundleDisplayName</key>
        <string>ClickDesigner</string>
        <key>CFBundleDocumentTypes</key>
        <array>
            <dict>
                <key>CFBundleTypeName</key>
                <string>Clicker Data Document</string>
                <key>CFBundleTypeRole</key>
                <string>Editor</string>
                <key>LSHandlerRank</key>
                <string>Owner</string>
                <key>LSItemContentTypes</key>
                <array>
                    <string>com.digitaldownbeat.clicker.clk</string>
                </array>
            </dict>
        </array>
        <key>CFBundleExecutable</key>
        <string>${EXECUTABLE_NAME}</string>
        <key>CFBundleIconFile</key>
        <string>icon.png</string>
        <key>CFBundleIcons</key>
        <dict>
            <key>CFBundlePrimaryIcon</key>
            <dict>
                <key>CFBundleIconFiles</key>
                <array>
                    <string></string>
                    <string>icon.png</string>
                    <string>icon@2x.png</string>
                </array>
            </dict>
        </dict>
        <key>CFBundleIdentifier</key>
        <string>com.digitaldownbeat.${PRODUCT_NAME}</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundleName</key>
        <string>Clicker</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>1.0</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleURLTypes</key>
        <array>
            <dict>
                <key>CFBundleURLSchemes</key>
                <array>
                    <string>db-k6rrg6wgwv4uij1</string>
                </array>
            </dict>
            <dict>
                <key>CFBundleURLName</key>
                <string>com.digitaldownbeat.clickdesigner</string>
                <key>CFBundleURLSchemes</key>
                <array>
                    <string>clickdesigner</string>
                </array>
            </dict>
        </array>
        <key>CFBundleVersion</key>
        <string>1.0</string>
        <key>LSRequiresIPhoneOS</key>
        <true/>
        <key>LSRequiresiPhoneOS</key>
        <true/>
        <key>NSMainNibFile</key>
        <string>MainWindow</string>
        <key>UIFileSharingEnabled</key>
        <true/>
        <key>UIStatusBarStyle</key>
        <string>UIStatusBarStyleBlackTranslucent</string>
        <key>UISupportedInterfaceOrientations</key>
        <array>
            <string>UIInterfaceOrientationPortrait</string>
            <string>UIInterfaceOrientationPortraitUpsideDown</string>
        </array>
        <key>UTExportedTypeDeclarations</key>
        <array>
            <dict>
                <key>UTTypeConformsTo</key>
                <array>
                    <string>public.text</string>
                </array>
                <key>UTTypeDescription</key>
                <string>ClickDesigner Data Document</string>
                <key>UTTypeIdentifier</key>
                <string>com.digitaldownbeat.clickdesigner.clk</string>
                <key>public.filename-extension</key>
                <string>clk</string>
                <key>public.mime-type</key>
                <string>application/clickdesigner</string>
            </dict>
        </array>
    </dict>
    </plist>

感谢您能提供的任何帮助。

EN

回答 1

Stack Overflow用户

发布于 2013-03-15 13:32:51

尝试将此代码添加到应用程序的delegate.m文件中。在

代码语言:javascript
复制
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{

  NSURL *url = (NSURL *)[launchOptions valueForKey:UIApplicationLaunchOptionsURLKey];
    if (url != nil && [url isFileURL]) {}
}

这对我的音频附件起作用了,但我的图像文件有问题。jpg、png、tif等

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/12304866

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档