Style Three 20 TTLauncherItem

How to set text color to black for TTLauncherItem from Three20 library? I saw that the style property is NSString .

I am trying to assign something like this:

 TTTextStyle *aux = [TTTextStyle styleWithFont:[UIFont boldSystemFontOfSize:12] color:RGBCOLOR(80, 80, 80) minimumFontSize:12 shadowColor:nil shadowOffset:CGSizeZero next:nil]; 

I saw that there are several examples of subclassing a style and overriding it for a button, but is there a simpler solution, for example, just assigning the style / color that I want to use TTLauncherItem ?

+4
source share
1 answer

Refer to the following TTStyleSheet proper implementation TTStyleSheet :

Th20 Style Study Guide

Also see the following SO answer:

How to change title color in TTLauncherItem?

0
source

Source: https://habr.com/ru/post/1335605/


All Articles