如何使用正在开发的 iOS 应用程序打开文件(它是 XML 文件)。我想测试我的:UIApplicationLaunchOptionsURLKey实现。我该怎么做呢?iOS Simulator 没有附带 Mail 或任何东西,所以我对测试这种功能一无所知。有任何想法吗?
我在 Xcode 的 Target Properties 位下做了 Document Types,所以我很确定这是对的:
<dict>
    <key>CFBundleTypeIconFiles</key>
    <array>
        <string>icon</string>
    </array>
    <key>CFBundleTypeName</key>
    <string>XML File</string>
    <key>LSItemContentTypes</key>
    <array>
        <string>public.XML</string>
    </array>
</dict>