小编dpa*_*074的帖子

ios 中的缩略图关联?

我正在尝试运行 cocoapod 依赖项ios-PDF-Reader,当我通过“文件”应用程序在手机上选择 pdf 时,出现以下错误:

[DocumentManager] Failed to associate thumbnails for picked URL file:///private/var/mobile/Containers/Data/Application/../../Welcome.pdf 
with the Inbox copy file:///private/var/mobile/Containers/Data/Application/../../tmp/com../Welcome.pdf: 
Error Domain=QLThumbnailErrorDomain Code=102 "(null)" 
UserInfo={NSUnderlyingError=0x28226cf90 {Error Domain=GSLibraryErrorDomain Code=3 "Generation not found" 
UserInfo={NSDescription=Generation not found}}}
Run Code Online (Sandbox Code Playgroud)

以前有人遇到过无法关联缩略图错误吗?有没有简单的解决方法?这是它中断的代码:

extension TestPdfEpubViewController: UIDocumentPickerDelegate {
    func documentPicker(_ controller: UIDocumentPickerViewController, didPickDocumentsAt urls: [URL]) {
guard let selectedFileURL = urls.first else { return }
            //create pdf first
            let documentFileURL = Bundle.main.url(forResource: selectedFileURL.absoluteString, withExtension: "pdf")!
            let document = PDFDocument(url: documentFileURL)!
            //then display the pdf
            let readerController = PDFViewController.createNew(with: …
Run Code Online (Sandbox Code Playgroud)

pdf cocoa ios cocoapods swift

5
推荐指数
0
解决办法
1375
查看次数

为什么我的标签开关不起作用?

我很难搞清楚为什么我的标签ID无法正常工作或运行应该如此.在单击时,它应该用不同的东西替换文本(即正在构建的页面).

这是我到目前为止...

HTML

<!doctype html>
<html>
<head>
  <title>Main Page</title>  <!--main page title -->
  <script type="text/javascript" scr="home_page.js"></script>
  <link rel="stylesheet" type="text/css" href="home_page.css"/>
</head>
<body>

  <h1> Express Shop </h1>
  <div class="content">
    <div class="navbar">
      <ul>
        <li><a href="#" title="Home" class="active">Home</a></li>
        <li><a href="#" title="Inventory">Inventory</a></li>
        <li><a href="#" title="Directions">Directions</a></li>
        <li><a href="#" title="Contact Us">Contact Us</a></li>
      </ul>
  </div>

  <div id="tab1" class="tab active">
    <h3>Welcome to Express Shop!</h3>
    <p>Your one stop shop for repairs! We work with various laptops, PCs, iPhones, iPads, tablets, smart phones and more!</p>
    <p> We are also an …
Run Code Online (Sandbox Code Playgroud)

html javascript css jquery

3
推荐指数
1
解决办法
82
查看次数

标签 统计

cocoa ×1

cocoapods ×1

css ×1

html ×1

ios ×1

javascript ×1

jquery ×1

pdf ×1

swift ×1