UIButton(type: .system)
안쓰면 혼난다. 이유는 iOS에서 시스템 스타일 버튼을 제공해 기본적인 터치 그리고 UI반응을 쉽게 구현할 수 있어서 써야한다!!!!!!!!!!!!!!!!
let button = UIButton(type: .system)
button.setTitle("Click Me", for: .normal)
button.tintColor = .systemBlue
button.addTarget(self, action: #selector(buttonTapped), for: .touchUpInside)
func buttonTapped() {
print("버튼 클릭됨")
}