Friday, April 17, 2026
HomeiOS Developmentios - find out how to set {couples} of button's title as...

ios – find out how to set {couples} of button’s title as soon as a time, button.setTitle

[ad_1]

I wish to change buttons title in beneath manner, however get warning “Further arguments at positions #2, #3, #4, #5, #6, #7, #8, #9, #10 in name”

how might I make it work.



@IBOutlet weak var firstrow: UIButton!
    
    @IBOutlet weak var secondrow: UIButton!
    
    @IBOutlet weak var thirdrow: UIButton!
    
    
    @IBAction func SecondaryKeyboard(_ sender: Any) {
        
        firstrow.setTitle("1","2","3","4","5","6","7","8","9","0", for: UIControl.State.regular)
        secondrow.setTitle("!","@","#","$","%","&","*","(",")", for: UIControl.State.regular)
        thirdrow.setTitle("`",";","'",",",".","?","(", for: UIControl.State.regular)

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments