Skip to content

Instantly share code, notes, and snippets.

@ktanaka117
Last active February 18, 2016 02:41
Show Gist options
  • Save ktanaka117/c12c762c0e54c07f9267 to your computer and use it in GitHub Desktop.
Save ktanaka117/c12c762c0e54c07f9267 to your computer and use it in GitHub Desktop.
import UIKit
class ViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var textField: UITextField!
override func viewDidLoad() {
super.viewDidLoad()
textField.addTarget(self, action: "hoge:", forControlEvents: UIControlEvents.EditingChanged)
}
// !!! 処理が遠い&ジャンプできない !!!
func hoge(textField: UITextField) {
print(textField.text)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment