event
UILabelのタップイベントを処理して、ラベルに表示する値をアラートダイアログで入力する方法です。 UIラベルのisUserInteractionEnabledをtrueにして、touchesEndedで処理します。 class ViewController: UIViewController { let timerLabelTag = 10 @IBOut…
UILabelのタップイベントを処理して、ラベルに表示する値をアラートダイアログで入力する方法です。 UIラベルのisUserInteractionEnabledをtrueにして、touchesEndedで処理します。 class ViewController: UIViewController { let timerLabelTag = 10 @IBOut…