UIButton.addTarget(self, action: #selector(self.eventFunction), for: .touchUpInside)
@IBAction func buttonEvent() {
//your code
print("buttonEvent")
}
'swift' 카테고리의 다른 글
UITextField password (0) | 2018.03.21 |
---|---|
UiTextField only english (0) | 2018.03.21 |
UITextview 스크롤 최상위 부터 보기 (0) | 2018.03.21 |
textField border style none, textField font 크기 변경 (0) | 2018.03.13 |
textField, textView (0) | 2018.03.13 |