2016-11-02 244 views
0

我使用M13PDFKit並有一點問題。在這個例子中,done按鈕不在那裏,但是當我嘗試顯示時。我不知道如何刪除它。完成按鈕看起來像這樣。在視圖控制器使用雨燕 enter image description here在M13PDFKit快速刪除完成按鈕

就這樣

import UIKit 
import M13PDFKit 

class ViewController: UIViewController { 

override func viewDidLoad() { 
    super.viewDidLoad() 
    // Do any additional setup after loading the view, typically from a nib. 
} 

override func didReceiveMemoryWarning() { 
    super.didReceiveMemoryWarning() 
    // Dispose of any resources that can be recreated. 
} 

override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { 
    if segue.identifier == "NEXT" { 
     let viewer: PDFKBasicPDFViewer = segue.destinationViewController as! PDFKBasicPDFViewer 
     viewer.enableBookmarks = true 
     viewer.enableBookmarks = true 
     viewer.enableOpening = true 
     viewer.enablePrinting = true 
     viewer.enableSharing = true 
     viewer.enableThumbnailSlider = true 
     //Load the document (pdfUrl represents the path on the phone of the pdf document you wish to load) 
     let pdfUrl = "/Users/developer/Library/Developer/CoreSimulator/Devices/C8DC5F44-B2FC-4FC3-8E10-B87FC00791FA/data/Containers/Data/Application/047BE9AD-F43C-421E-B5B5-943B0C79B592/Documents/Yudi Seven.pdf" 
     let document: PDFKDocument = PDFKDocument(contentsOfFile: pdfUrl, password: nil) 
     viewer.loadDocument(document) 
    } 
} 
} 
+0

做完按鈕是否有任何操作? – Joe

+0

檢查編輯問題 –

+0

我剛剛從github下載M13PDFKit。它看起來像完成按鈕出現在默認?讓我看看如何修改.... – Joe

回答

1

轉到PDFKBasicPDFViewer.m進出口禁用第一圖像中所強調的線(線247),然後運行該項目... 。

enter image description here

輸出:

enter image description here

+0

謝謝!但我想問你如何使完成按鈕作爲後退按鈕?或者我應該提出另一個問題? –