Fix deprecate warnings

This commit is contained in:
Felix Schulze 2016-08-09 21:01:08 +02:00
parent db7f060696
commit 1bf5c5680e
1 changed files with 2 additions and 2 deletions

View File

@ -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()
} }