samedi 21 novembre 2020

Print the result of button every time pressed

import UIKit

class ViewController: UIViewController {
    
    let softTime = 5
    let mediumTime = 7
    let hardTime = 12
    
    
    @IBAction func hardnessSelected(_ sender: UIButton) {
       // print(sender.currentTitle)
        let hardness = sender.currentTitle

/* I want print the of let if pressed first button or second ... */

Aucun commentaire:

Enregistrer un commentaire