From 1bf5c5680e1cf6f758d0ba51dc19f8b86d201228 Mon Sep 17 00:00:00 2001 From: Felix Schulze Date: Tue, 9 Aug 2016 21:01:08 +0200 Subject: [PATCH] Fix deprecate warnings --- OpenSSL-for-iOS/ViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSSL-for-iOS/ViewController.swift b/OpenSSL-for-iOS/ViewController.swift index 32c7e33..5ebb342 100644 --- a/OpenSSL-for-iOS/ViewController.swift +++ b/OpenSSL-for-iOS/ViewController.swift @@ -29,10 +29,10 @@ class ViewController: UIViewController { self.title = "OpenSSL-for-iOS" 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.textField.addTarget(self, action: "textFieldDidChange", forControlEvents: .EditingChanged) + self.textField.addTarget(self, action: #selector(ViewController.textFieldDidChange), forControlEvents: .EditingChanged) self.calculateHash() }