Iphone 要从ipad的pdf页面在我的应用程序中打开pdf文件,我应该在info.plist中写些什么
我想从pdf文件在我的应用程序中打开pdf文件, 这是我的info.plist文件Iphone 要从ipad的pdf页面在我的应用程序中打开pdf文件,我应该在info.plist中写些什么,iphone,objective-c,pdf,Iphone,Objective C,Pdf,我想从pdf文件在我的应用程序中打开pdf文件, 这是我的info.plist文件 <key>UIFileSharingEnabled</key> <true/> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <st
<key>UIFileSharingEnabled</key>
<true/>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>pdf</string>
<key>CFBundleTypeExtensions</key>
<array>
<string>pdf</string>
</array>
<key>CFBundleTypeOSTypes</key>
<array>
<string>TEXT</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleTypeIconFiles</key>
<string>Icon.png</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<string>com.adobe.pdf</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
</dict>
</array>
UIFileSharingEnabled
CbundleDocumentTypes
CbundleTypeName
pdf
CbundleTypeExtensions
pdf
Cbundletypeostypes
正文
CbundleTypeRole
编辑
CbundleTypeConfigiles
应用程序图标
LSIsAppleDefaultForType
lsItemContentType
com.adobe.pdf
伊斯汉德兰克
候补
我不知道我错在哪里,或者做这件事的附加步骤是什么。
我需要一些帮助。我将以下文本放在info.plist中。文件和它的工作
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFile</key>
<string>Icon.png</string>
<key>CFBundleTypeIconFiles</key>
<string>Icon.png</string>
<key>CFBundleTypeName</key>
<string>pdf</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSIsAppleDefaultForType</key>
<true/>
<key>LSItemContentTypes</key>
<array>
<string>com.adobe.pdf</string>
</array>
<key>NSDocumentClass</key>
<string>Document</string>
</dict>
</array>
CbundleDocumentTypes
CbundleTypeConfigile
应用程序图标
CbundleTypeConfigiles
应用程序图标
CbundleTypeName
pdf
CbundleTypeRole
编辑
伊斯汉德兰克
候补
LSIsAppleDefaultForType
lsItemContentType
com.adobe.pdf
NSDocumentClass
文件
顺便说一句,您可以转到目标设置中的“属性”选项卡直接添加文档类型。所以
无需手动修改info.plist
希望能有帮助