Heim > Fragen und Antworten > Hauptteil
第一个页面
func pushView(){
let secondVC = secondViewController()
secondVC.titleGo = "百度一下"
secondVC.address = "https://www.baidu.com"
self.performSegue(withIdentifier: "secondViewController", sender: self)
print("======")
}
第二个:
var address = String()
var titleGo = String()
var webView = WKWebView()
override func viewDidLoad() {
itemBar.title = titleGo
print("======+\(titleGo)")
label.title = address
print("++++++=\(address)")
}
PHP中文网2017-04-18 09:50:32
navigationItem.leftBarButtonItem =
UIBarButtonItem(title: "返回",
style: .plain,
target: self,
action: #selector(ViewController.close))