Created
June 9, 2018 09:25
-
-
Save movii/d63beed7710fed539204ba122ee52e63 to your computer and use it in GitHub Desktop.
笔记:iOS 与 JavaScript 的交互(三)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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