【发布时间】:2018-03-12 13:11:53
【问题描述】:
我是 swift 和一般编码的新手,我正在根据 youtube 上的教程制作一个简单的网络浏览器应用程序,但我遇到了一些错误。我可以做出任何改变吗?
import UIKit
class ViewController: UIViewController {
@IBAction func settings(_ sender: Any) {
}
@IBOutlet weak var mysettings: UIButton!
@IBOutlet weak var myWebviewer: UIWebView!
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
mywebviewer.loadrequest(URLRequest(url: URL(String:"https://www.google.com")!))
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
【问题讨论】: