ios – 找不到PDF标题:找不到’%PDF’

我收到这个日志,当我尝试加载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

我们应该等待下一个版本,看看它是否固定.

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...