ernadeem.zhcet

Q: Facing issue in using Webview to View docs (ppt,pdf etc) in TV OS

I am facing issue in using webview in TV OS. Anyhow i am able to use webview for viewing doc like PPT,PDF but i am unable to scroll it properly till end.Can someone please help. Please find the code below.

 

let webViewClass : AnyObject.Type = NSClassFromString("UIWebView")!

            let webViewObject : NSObject.Type = webViewClass as! NSObject.Type

            let webview: AnyObject = webViewObject.init()

            let url = NSURL(string: link)

            let request = NSURLRequest(URL: url!)

            webview.loadRequest(request)

            let uiview = webview as! UIView

            uiview.frame = CGRectMake(0, 0,1920,1600)

            self.superview!.addSubview(uiview)

Apple TV, Other OS

Posted on Jan 7, 2016 11:26 AM

Close

Q: Facing issue in using Webview to View docs (ppt,pdf etc) in TV OS

  • All replies
  • Helpful answers