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

let contentHeight = yourUITextView.contentSize.height

let offSet = yourUITextView.contentOffset.x

let contentOffset = contentHeight - offSet


yourUITextView.contentOffset = CGPoint(x: 0, y: -contentOffset)

'swift' 카테고리의 다른 글

UiTextField only english  (0) 2018.03.21
UiButton 이벤트 적용  (0) 2018.03.21
textField border style none, textField font 크기 변경  (0) 2018.03.13
textField, textView  (0) 2018.03.13
네비게이션 바 색상 변경  (0) 2018.03.13

보더 스타일

textField.border.style = .none


폰트 크기

textField.font = UIFont(name: textField.font!.fontName, size: 14)

'swift' 카테고리의 다른 글

UiTextField only english  (0) 2018.03.21
UiButton 이벤트 적용  (0) 2018.03.21
UITextview 스크롤 최상위 부터 보기  (0) 2018.03.21
textField, textView  (0) 2018.03.13
네비게이션 바 색상 변경  (0) 2018.03.13

+ Recent posts