Post

Replies

Boosts

Views

Activity

How to change the font size of a button in Xcode
Hi I am in Xcode in the interface builder storyboard trying to make a tic-tac-toe game. In an action I wanted when the user presses a button an X appears at a certain font size. I have looked for a long time around the internet and still couldn't find anything. I will be forever grateful if you could help me 😁.  @IBAction func testX(_ sender: UIButton) { sender.titleLabel?.font = [UIFont withSize(75.0)]; } I tried this it doesn't work.
2
1
1.8k
Nov ’22