Fix deprecate warnings
This commit is contained in:
parent
db7f060696
commit
1bf5c5680e
|
@ -29,10 +29,10 @@ class ViewController: UIViewController {
|
||||||
|
|
||||||
self.title = "OpenSSL-for-iOS"
|
self.title = "OpenSSL-for-iOS"
|
||||||
let infoButton = UIButton(type: .InfoLight)
|
let infoButton = UIButton(type: .InfoLight)
|
||||||
infoButton.addTarget(self, action: "showInfo", forControlEvents: .TouchDown)
|
infoButton.addTarget(self, action: #selector(ViewController.showInfo), forControlEvents: .TouchDown)
|
||||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: infoButton)
|
self.navigationItem.rightBarButtonItem = UIBarButtonItem(customView: infoButton)
|
||||||
|
|
||||||
self.textField.addTarget(self, action: "textFieldDidChange", forControlEvents: .EditingChanged)
|
self.textField.addTarget(self, action: #selector(ViewController.textFieldDidChange), forControlEvents: .EditingChanged)
|
||||||
self.calculateHash()
|
self.calculateHash()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue