I set a default UIButton Font.
UIButton.appearance().titleLabel?.font = UIFont.systemFont(ofSize: 17)
But It not working for UIButton Style Default. It's titleLabel is not UILabel , It's a private class UIButtonLabel.
How can I do
I set a default UIButton Font.
UIButton.appearance().titleLabel?.font = UIFont.systemFont(ofSize: 17)
But It not working for UIButton Style Default. It's titleLabel is not UILabel , It's a private class UIButtonLabel.
How can I do
Did you define the button type as custom ? If not, try it (in IB it is easy in Attributes inspector)