我收到这个日志,当我尝试加载pdf,不知道为什么.
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.
谢谢你的帮助.
解决方法
2014年9月9日的更新:iOS8 GM为我正在使用的应用程序修复了此问题.
2014年9月9日之前的回复
据悉,苹果在iOS8 Beta 5发行说明中已知一个已知错误.
https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-8.0/
https://devforums.apple.com/message/1017919#1017919
我们应该等待下一个版本,看看它是否固定.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。