问题描述
当我尝试加载pdf却不知道为什么时,会收到此日志.
I get this log when i try to load a pdf and don't know why.
failed to find PDF header: `%PDF' not found.
她的代码:
- (void)viewDidLoad
{
[webview loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://webdesign-schoenefeld.de/es-app/heute.pdf"]]];
NSLog(@"---------------pdfloading....,------------------------");
[webview addSubview:activityind];
timer = [NSTimer scheduledTimerWithTimeInterval:(1.0/2.0)
target:self
selector:@selector(loading)
userInfo:nil
repeats:YES];
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}
我使用Xcode 6 Beta 5和iOS 8 beta 5.
I use Xcode 6 Beta 5 and iOS 8 beta 5.
感谢您的帮助.
推荐答案
2014年9月9日更新:iOS8 GM解决了我正在使用的应用程序的此问题.
Update on SEP 9 2014: iOS8 GM fixed this issue for apps I'm working with.
2014年9月9日之前的回复Apple在iOS8 Beta 5发行说明中将其报告为已知错误. https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-8.0/ https://devforums.apple.com/message/1017919#1017919
Response prior to SEP 9 2014It is reported as a known bug by Apple in iOS8 Beta 5 release notes.https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-8.0/https://devforums.apple.com/message/1017919#1017919
我们应该等待下一个版本,看看它是否已修复.
We should wait next release and see if it is fixed.
这篇关于找不到PDF标头:找不到'%PDF'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!