当用户点击alertviewController中的按钮,然后我打开一个viewcontroller使用目前modally segue,这个打开的viewcontroller有webview加载pdf文件。这个pdf文件存储在应用程序和我使用webview当PDF文件在网页视图中打开加载this.But请求,web视图不滚动在webview中的pdf文件不滚动
下面的代码加载PDF文件中的WebView
override func viewDidLoad()
{
super.viewDidLoad()
let filePath = NSBundle.mainBundle().pathForResource("Tutorial - Guided Access and Guided Access passcodes", ofType: "pdf")
GANoticeWebView.loadRequest(NSURLRequest(URL: NSURL(fileURLWithPath: filePath!)))
GANoticeWebView.scalesPageToFit = true
GANoticeWebView.scrollView.bounces = true;
self.view .addSubview(GANoticeWebView)
这个PDF文件有2页。但是由于webview不滚动,用户只能看到页面的前半部分。
请帮我这个。
由于提前
是'GANoticeWebView'的框架正确 –