ios - UIDocumentInteractionController 创建就crash有大侠么?
PHP中文网
PHP中文网 2017-04-18 09:54:14
0
1
437

打开服务器文件,

NSURL *fileURL = [NSURL URLWithString:_newsModel.fileLink];
if (fileURL) {
        self.doucmentVC = [UIDocumentInteractionController interactionControllerWithURL:fileURL];//这句就crash 
        self.doucmentVC.delegate = self;
    }

崩溃信息

已经把控制器作为属性了,链接也正常,放在浏览器上可以打开,为什么会crash了呢?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
小葫芦

It should be the URL of a local file

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!