@IBAction func clickButton(_ sender: UIButton){
print(sender.currentTitle)
print(sender.title(for: .normal))
print(sender.titleLabel?.text)
}
sender.currentTitle
'개발 > 아이오에스' 카테고리의 다른 글
ios] xcode app 다크모드 적용 끄기 (0) | 2021.01.13 |
---|---|
swift] button 터치시 투명도 조절하기 (hover st..) (0) | 2020.12.30 |
swift] Photos 프레임워크 (0) | 2020.12.28 |
swift ] 다음 화면으로 데이터 전달하기 (0) | 2020.12.26 |
swift 네비게이션바 배경색상 제목색상 변경 navigationController (0) | 2020.12.26 |