I using storyboard.
two navigation controller in main storyboard.
1. one navigation controller is main view to touch button from directly execute app.
-> no problem.
2. The other navigation controller is specified view from custom uri scheme.
-> problem. not display viewer.
below log
:
2018-05-21 16:20:28.735407+0900 plotnewpe[1598:55115] Starting synchronous request to
www.npssystem.com/files/List_1.pdf with byte range: 376832-385799
2018-05-21 16:20:28.754800+0900 plotnewpe[1598:55115] START Download blocks: 47 to 48
2018-05-21 16:20:28.754934+0900 plotnewpe[1598:55115] START Download blocks: 46 to 47
2018-05-21 16:20:28.759897+0900 plotnewpe[1598:55115] START Download blocks: 46 to 48
2018-05-21 16:20:28.760099+0900 plotnewpe[1598:55115] 7346621f5821e87a2d3ebb0f7b3d06f5
2018-05-21 16:20:28.760229+0900 plotnewpe[1598:55115] PDFView rect :0.000000 0.000000 375.000000 667.000000
2018-05-21 16:20:28.760604+0900 plotnewpe[1598:55115] 1
below code(using common code of section 1,2)
:
let urlPath: String = "
www.npssystem.com/files/List_1.pdf"
let plugin: RadaeePDFPlugin = self.pluginInit()
plugin.setDelegate(self);
//OPEN method
//Create Reader instance from Bundle (readonly)
//let reader = plugin.open(fromAssets: "test.pdf", withPassword: "")
//Create Reader instance from custom path
let reader = plugin.show(urlPath, atPage: 1, withPassword: "", readOnly: true, autoSave: false);
if (reader != nil) {
let vc: UIViewController = reader as! UIViewController
//Title bar inherits the Navigation barTintColor
self.navigationController?.navigationBar.barTintColor = UIColor.black
self.navigationController?.navigationBar.isTranslucent = false;
//Icons inherit the Navigation tintColor
self.navigationController?.navigationBar.tintColor = UIColor.orange
self.navigationController?.pushViewController(vc, animated: false)