找不到PDF标头:找不到'%PDF'

马里乌斯·舍内费尔德(MariusSchönefeld)

当我尝试加载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。

谢谢你的帮助。

鲍里斯·苏沃洛夫(Boris Suvorov)

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

我们应该等待下一个版本,看看它是否已修复。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章