Hi
I am in Xcode in the interface builder storyboard. In an action I wanted when the user presses a button the buttons title becomes an X at a certain font size. I have tried for a long long time 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.