Skip to content

Instantly share code, notes, and snippets.

@movii
Created June 9, 2018 09:25
Show Gist options
  • Save movii/d63beed7710fed539204ba122ee52e63 to your computer and use it in GitHub Desktop.
Save movii/d63beed7710fed539204ba122ee52e63 to your computer and use it in GitHub Desktop.
笔记:iOS 与 JavaScript 的交互(三)
progressView = UIProgressView(
frame: CGRect(
origin: CGPoint(x: 0, y: 64),
size: CGSize(width: self.view.frame.width, height: 1)
)
)
let width = self.view.bounds.size.width
let height = self.view.bounds.size.height
wkWebView.frame = CGRect(
origin: CGPoint(x: 0, y: 0),
size: CGSize(width: width, height: height)
)
wkWebView.addSubview(progressView)
self.view.addSubview(wkWebView)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment