Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Attributed Title attributes set to UIButton in Interface Builder are ignored in app

I have a UIButton that I've given an attributed title in Interface Builder: it has a specific font, and one part of the string is a different color.

When I load my app, the color is maintained, but the app reverts the font back to system default...

Anyone experience this or know a way to fix? Was trying to avoid having to set the attributed titles in code.

If it matters, the font I'm using is Open Sans, and it displays correctly on other labels where I've specified the font in code.

like image 588
Adama Avatar asked May 15 '15 17:05

Adama


1 Answers

Have you tried to select text before you change button's font?example?

like image 143
Che Avatar answered Nov 02 '22 23:11

Che