ttlauncheritem

How to change the color of the title in TTLauncherItem?

走远了吗. 提交于 2019-12-12 07:38:15
问题 I am having a lot of trouble trying to change the color in the TTLauncherItem, because the default gray color does no work with my background. Any ideas? 回答1: Here's what I used to change the text color of TTLauncherItem from the default gray color to black (looks better on a white background): (1) Create a Stylesheet that inherits from TTDefaultStyleSheet : Stylesheet.h: @interface StyleSheet : TTDefaultStyleSheet {} @end Stylesheet.m: // Style for TTLauncherItems - (TTStyle*)launcherButton:

How to change the color of the title in TTLauncherItem?

假装没事ソ 提交于 2019-12-03 08:53:16
I am having a lot of trouble trying to change the color in the TTLauncherItem, because the default gray color does no work with my background. Any ideas? Hunt IT Here's what I used to change the text color of TTLauncherItem from the default gray color to black (looks better on a white background): (1) Create a Stylesheet that inherits from TTDefaultStyleSheet : Stylesheet.h: @interface StyleSheet : TTDefaultStyleSheet {} @end Stylesheet.m: // Style for TTLauncherItems - (TTStyle*)launcherButton:(UIControlState)state { return [TTPartStyle styleWithName: @"image" style: TTSTYLESTATE