简体   繁体   English

在iPad模拟器中显示的pdf文件不在iPad设备中

[英]Pdf file displayed in ipad simulator not in Ipad device

I have a pdf file in resources folder of my Universal app. 我的通用应用程序的资源文件夹中有一个pdf文件。 with my coding It is displayed on Ipad Simulaor, Iphone simulator and on iphone device but that file is not displayed on Ipad device, can anyone suggest me how to resolve it? 用我的编码显示在Ipad Simulaor,Iphone仿真器和iphone设备上,但该文件未显示在Ipad设备上,有人可以建议我如何解决它吗?

Thanks in advance. 提前致谢。

The first thing to check is whether you are accessing the PDF using the exact name as it is stored in the filesystem. 首先要检查的是,是否要使用存储在文件系统中的确切名称来访问PDF。 The normal OS X filesystem is case-insensitive, while the filesystem on the device is case-sensitive; 普通的OS X文件系统不区分大小写,而设备上的文件系统则区分大小写。 this means that eg "foo.pdf" and "foo.PDF" are the same in the simulator, but are different on the device. 这意味着,例如“ foo.pdf”和“ foo.PDF”在模拟器中相同,但在设备上不同。

If that doesn't fix it, check the console for error messages and edit your question to include any that are output. 如果仍不能解决问题,请检查控制台以获取错误消息,然后编辑问题以包括所有输出内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM