Swift/UIButton
[SWIFT]UIButton Action 함수 호출 하기
삽질중
2023. 6. 9. 09:14
간혹가다 UIButton Action 함수를 내가 호출 해야되 되는 경우가 있었다. 찾아보니 간단하게 호출 하가능함.
testButton.sendActions(for: .touchUpInside)
@IBAction func testButton(_ sender: UIButton) {
// IBAction 버튼 함수 호출
}